[BUG] - It's not possible to enter space when `Input` is inside `AccordionItem`
NextUI Version
2.0.19
Describe the bug
- If the accordion is open by default, it's not possible to focus
Inputon the first click. - It's not possible to enter space in an
Inputthat is nested within the content ofAccordionItem.
Your Example Website or App
https://codesandbox.io/p/sandbox/proud-bird-38k5c2
Steps to Reproduce the Bug or Issue
- Open codesandbox link
- Click on the input field inside the accordion
- See that the first click doesn't focus the input
- Click on the input field a second time
- Try typing any characters followed by a space and see that it's not possible to enter a space
Expected behavior
I expect regular behavior using Input inside AccordionItem
Screenshots or Videos
https://github.com/nextui-org/nextui/assets/54850073/71af5322-5df7-4c13-ae25-28ce0d6c6516
Operating System Version
macOS 12.3.1
Browser
Chrome
My team is having a similar problem. I will update you if a solution is found.
This problem is not occurring in Safari. It is probably a browser-based bug.
I have reproduced this problem in Safari.
same issue, but entering space works after you click outside the input field and start writing again (sometimes it may not work the first time)
I initially thought it was a problem with my OS or browser, but rebooting the PC had no effect on the problem, however a type of "solution" was written above
Hey guys this is an Accordion bug, we'll look into it, the Space bar event to open the AccordionItem might be causing this
is there any updates about that?
I have the same issue with this bug, using Input inside Accordion component, my team needs some feedback asap.
This happens with Textarea as well: https://github.com/nextui-org/nextui/issues/1608
Fixed, install the latest version v2.1.13
Same thing is happening using Input or TextArea inside Table component
The problem with the accordion happens to me with control or any other kind of keyboard input. How can i disable the "Keyboard focus management"
This bug is now reprodusing in 2.6.14 Solution for this bug currently is adding e.stopPropagation(); to onFocus event on Input