-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - select component cannot be opened inside a modal (VITE - heroui-cli) #4876
Comments
I can no longer open popovers inside a dialog, and was just coming here to open an issue for it. Thanks for beating me to it!
|
I'd like to work on it |
Are you also using Windows? |
Update: @mr-nexg I'm not able to reproduce your issue on my machine (Mac). Tried with a fresh project using Vite, copied and pasted your code, opened the site in both Chrome and Firefox, and didn't see the issue. Select is working fine inside a modal. |
Do you see any errors in your browser console? @mr-nexg |
I didn't get any error in the console (both in the browser and in the terminal). I have tried to create another project with cli (now), and now it works. I guess they must have updated it recently, because I opened the other project where I tried the first time and it doesn't work. It seems strange to me, only in a few days “it was fixed”. These are the dependencies of the project where it does not work.
And this one where it does work
|
Cool. Can we close the ticket? @wingkwong |
I managed to solve it, although I had to create a vite project without heroui, configure and restructure the project (I have not advanced much so I have not had problems). I assumed the problem was the CLI, because in the dependencies, all components were installed “independently”.
Now in the new project, I have only as dependencies.
But testing now (hero cli), it works fine, at least with select, I guess there will be no problem with another component (similar to select). |
HeroUI Version
Describe the bug
While working on a project with Vite and Hero UI, I needed to place a form inside a modal. I had used the Select component in other parts of the project without any problem, but when I tried to place it inside the modal, the options did not appear.
I tried several solutions, such as updating Hero UI to the latest version, deleting and reinstalling node_modules, and clearing the cache, but nothing worked. To rule out project-specific problems, I created a new Vite project from scratch (using heroui cli) and tested it, but the problem persisted.
Even during testing, I noticed similar problems with other components, such as the dropdown.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
Ensure the Select opens correctly and works without issues.
Screenshots or Videos
Operating System Version
Windows
Browser
Firefox
The text was updated successfully, but these errors were encountered: