-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the issue
The TextInput component currently calls stopPropagation
on every keydown event, with a reference to #612. This is a quite heavyhanded workaround to a niche problem, and prevents me from handling key events further up the tree
Expected behavior
TextInput should only stop propagation of relevant events (space?)
Steps to reproduce
- Add a View with a keydown handler
- Add a TextInput inside it
- Press a key (e.g. Escape) while the TextInput is focused
The containing View does not receive the event
Test case
https://codesandbox.io/p/sandbox/fragrant-brook-42hkcd
Additional comments
No response