I found that when using NextUI in Electron Forge app, Autocomplete's keyboard shortcut doesn't work as expected but works in a weird way randomly. I use @nextui-org/react v2.4.1 and @nextui-org/autocomplete v0.0.0-canary-20240606161149.
When focused, arrow down key opens list but cannot choose item.
Moving focus to another Autocomplete by tab key opens next focused one's list automatically.
When list is opened, moving focus to another components by tab key keeps previous list opened.
Autocomplete works correctly as it can be seen on document; tab key jumps focus to next component, arrow up, down and enter key select item. And opened list closes automatically when focus moves.
NextUI Version
2.4.1
Describe the bug
I found that when using NextUI in Electron Forge app, Autocomplete's keyboard shortcut doesn't work as expected but works in a weird way randomly. I use
@nextui-org/react
v2.4.1 and@nextui-org/autocomplete
v0.0.0-canary-20240606161149.Your Example Website or App
https://github.com/takuyahara/nextui-autocomplete-issue-in-electron
Steps to Reproduce the Bug or Issue
npm install
npm run start
Expected behavior
Autocomplete works correctly as it can be seen on document; tab key jumps focus to next component, arrow up, down and enter key select item. And opened list closes automatically when focus moves.
Screenshots or Videos
https://github.com/nextui-org/nextui/assets/46240835/cf2ca2dc-20e8-4156-9afa-bb8ad730fac7
Operating System Version
macOS
Browser
Other (add additonal context)