nextui-org / nextui

🚀 Beautiful, fast and modern React UI library.
https://nextui.org
MIT License
21.94k stars 1.53k forks source link

[BUG] Autocomplete behaves so weirdly in Electron app #3205

Closed takuyahara closed 5 months ago

takuyahara commented 5 months ago

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

  1. Clone my repo mentioned above
  2. Run npm install
  3. Run 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)

linear[bot] commented 5 months ago

ENG-975 [BUG] Autocomplete behaves so weirdly in Electron app

takuyahara commented 5 months ago

Seems like Vite-related issue rather than Electron. Closing and opened another issue.

https://github.com/nextui-org/nextui/issues/3225