-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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] - Autocomplete and Select in Popover is buggy #3132
Comments
I am facing the similar issue when I use I am not able to select an item using the Version |
@sauravhathi you may remove your node_modules and reinstall. |
@wangly19 i tryed many times but not wokring When I select items using the mouse, it's not working, but when I try using I prefer if you could try Select or AutoComplete in a modal you'll face same issue in 2.3.6 and 2.4.0 |
@sauravhathi |
@Aryan-mor |
yup, just ran into this as well (after banging my head against the wall for a while so thanks for the sanity check with this ticket) after running through the 2.4 release notes, my best guess of the cause is a regression in this popover PR cc @wingkwong |
@pdevito3 yes i'm working on it. sorry for any inconvenience caused. |
All good! Appreciate the support and all the contributions 🍻 |
When the import * as Dialog from '@radix-ui/react-dialog'
import { ReactNode } from 'react'
import { cn } from '../../lib/utils/misc'
import { UseDisclosureProps } from '@nextui-org/react'
export default function Drawer(props: {
trigger: ReactNode
children: ReactNode
className?: string
disclosure?: UseDisclosureProps
}) {
return (
<Dialog.Root {...props.disclosure} open={props.disclosure?.isOpen}>
<Dialog.Trigger asChild>{props.trigger}</Dialog.Trigger>
<Dialog.Overlay className="!fixed z-30 inset-0 bg-black/40 flex justify-end " />
<Dialog.Content
className={cn(
'!fixed inset-y-0 right-0 h-dvh w-full max-w-4xl p-10 py-12 bg-white z-30 focus:outline-none overflow-y-auto',
props.className,
)}
>
{props.children}
</Dialog.Content>
</Dialog.Root>
)
} |
NextUI Version
2.4.0
Describe the bug
When I use Autocomplete and Select in a Popover and then select an item, the Popover closes, causing me to lose the state of the theme. The Popover should remain open when I choose an item from Autocomplete or Select.
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
Expected behavior
After selecting an item from Autocomplete or Select, only that list should close, and the Popover should remain open.
Screenshots or Videos
Recording.2024-05-30.140544.mp4
But it works on V2.3.6
You can see the same actions with NextUi V2.3.6 in this video
Recording.2024-05-30.141745.mp4
Operating System Version
windows
Browser
Edge
The text was updated successfully, but these errors were encountered: