Spaces at the end of textarea are automatically deleted


#1

As for the ‘textarea’ widget in the form, when I move the focus out of textarea and back, the space at the end will be deleted automatically without reservation, which has caused me trouble. Moreover, the getValue () method will not retain the trailing spaces.

PS. I‘ll talk about my application scenario: I input content to textarea on the left and want to output it in real time in the layout on the right (using ‘input’ events), but this will shift the focus out and back, so I can’t input spaces in the end of textarea.

I want to ask how to solve this problem, Thank you!


#2

Hello.

Please, try to use the input event:
https://docs.dhtmlx.com/suite/form/api/textarea/textarea_input_event/

Here is the example:
https://snippet.dhtmlx.com/wt52sk3u


#3

Thank you. This problem has been solved in version 7.3.2. I’ll be fine after I update it