Global: Fix textarea-wrapper expansion bug
ValentinFutterer opened this issue · comments
Describe the bug
The textarea can be expanded, but the popup with template text does not follow the expansion. Additionally, if a template text is clicked on, the whole text in the text area is overwritten. This can be undesired, since large amounts of text could be lost by accident. Change it so that the template text gets appended, in order to prevent users from losing progress.
![image](https://private-user-images.githubusercontent.com/80054001/338481401-7c18d42e-94dc-4a37-86cf-c375fcb44782.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk1NjEwNTUsIm5iZiI6MTcxOTU2MDc1NSwicGF0aCI6Ii84MDA1NDAwMS8zMzg0ODE0MDEtN2MxOGQ0MmUtOTRkYy00YTM3LTg2Y2YtYzM3NWZjYjQ0NzgyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI4VDA3NDU1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5MWZkNmRmMDgxZDUyNDBmZDc3NWIwNTg1MzEyODRlMjQ5NmM1MmRiYjUzYWZhMGYxMTk5ZjM1ODdlYjE5ZDYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.x8VfXRxqwleC1Hwbz0_tgTTlJkZaB0NF93-RVJq4Lc8)
Is this a regression?
No.
To Reproduce
Step 4 has a textarea-wrapper with template text.
Expected behavior
The popup should follow the expansion of the textfield; the text should not be overwritten by choosing a template text.
Environment
- Browser [e.g. firefox, chrome]
- Damap version 3.0.2