Support Article
Enter key does not work when cursor is on text area
SA-85497
Summary
Enter key does not work when the cursor is on the text area. Hence, user is unable to move the cursor to the next line.
Error Messages
Not Applicable
Steps to Reproduce
- Create a text area control
- Press the Enter key when the cursor is on the text area
Root Cause
A software use or operation error. A non-auto text area control is used and a function to calculate the remaining character count is present. However, the event propagation is not stopped. As a result, the Enter key event works incorrectly.
Resolution
Perform the following local-change:
Stop the event propagation on the Enter key with e.stopPropagation() in the function to calculate the remaining character count.
Published August 15, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.