[BUG] - Not possible to enter space characters into Textarea or Input components
HeroUI Version
2.6.12
Describe the bug
It is impossible to enter space characters into Textarea or Input components. This is true in my local builds as well as on the demo site: https://www.heroui.com/docs/components/textarea
Your Example Website or App
https://www.heroui.com/docs/components/textarea
Steps to Reproduce the Bug or Issue
- Go to https://www.heroui.com/docs/components/textarea on a Mac running Sonoma 14.6.1. Use either Chrome or Safari
- Go to any of the running Textarea examples and try to enter a space character - it doesn't work.
I have confirmed that the examples on the React-Aria site do work correctly. (https://react-spectrum.adobe.com/react-aria/TextField.html)
Expected behavior
I should be able to enter a space character into a Textarea or Input component.
Screenshots or Videos
No response
Operating System Version
macOS Sonoma 14.6.1
Browser
Chrome
It seems to be related to a keydown handler. If I remove the top keydown handler in Chrome DevTools, it starts working:
That last screen capture was from my local build. Here's the one from the running examples:
Please try updating to 2.6.13 to see if it resolves this issue
Looks like that fixed it.
Still reproducible at version 2.7.4 for me. Adding onKeyDown={() => null} to the <Textarea /> fixes the issue.
@domhhv I just tested on docs but didn't reproduce the issue.
Still reproducible at version 2.7.4 for me. Adding onKeyDown={() => null} to the
<Textarea />fixes the issue.
Thanks @domhhv, worked for me too