You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by ThiagoSzz January 23, 2025
Im working on a component that uses the TextArea component and I want to prevent it from clearing the value entered when pressing Escape.
Screen.Recording.2025-01-22.at.21.54.11.mov
I've tried adding the preventTextAreaPropagation function below to the onKeyDown event of the component, but with no results:
I saw that pressing Escape key should restore the value as it was when the focus arrived at the component but preventing the event doesn't prevent this behaviour.
The text was updated successfully, but these errors were encountered:
Discussed in #10638
Originally posted by ThiagoSzz January 23, 2025
Im working on a component that uses the TextArea component and I want to prevent it from clearing the value entered when pressing
Escape
.Screen.Recording.2025-01-22.at.21.54.11.mov
I've tried adding the
preventTextAreaPropagation
function below to theonKeyDown
event of the component, but with no results:Is this possible? If so, how can I achieve this?
Thank you.
I saw that pressing
Escape
key should restore the value as it was when the focus arrived at the component but preventing the event doesn't prevent this behaviour.The text was updated successfully, but these errors were encountered: