-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Provide a general summary of the issue here
When I use GridList + GridListItem + useDragAndDrop, and put an <input />
into the GridListItem
, selecting a typing into the input generally works except if I hit space. In which case, the space will be ignored entirely.
Interestingly, this only happens if there is other text inside the input already. Hitting spacebar alone works: typing
works fine. Typing "She sells sea shells" results in "Shesellsseashells".
π€ Expected Behavior?
Space inputs should work when typed into a field
π― Current Behavior
Space inputs don't work when typed into a field
π Possible Solution
Let spacebar events propagate the focused elements inside the GridListItem
π¦ Context
We use GridList for rich, interactive cards with many kinds of inputs. Breaking the users' space inputs is a big issue.

π₯οΈ Steps to Reproduce
Code sandbox: https://codesandbox.io/p/sandbox/musing-cori-xzfcr8?file=%2Fsrc%2FApp.js
Attempt to type "Hello my name is ..." into one of the input fields. The entered text will be "Hellomynameis..."
Version
react-aria-components: 1.11.0
What browsers are you seeing the problem on?
Firefox, Chrome
If other, please specify.
No response
What operating system are you using?
MacOS
π§’ Your Company/Team
No response
π· Tracking Issue
No response