Popover scrolling issue with mouse wheel #4175
-
I need to make a component which functions as codeui |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
For popovers that are inside a dialog component, you must set the popover's modal prop to true. <Popover modal={true}>
<PopoverTrigger asChild>
<Button
variant="outline"
role="combobox"
className={cn(
"w-full justify-between",
!field.value && "text-muted-foreground",
)}
>
{field.value
? users.find(
(user) => user.id === field.value,
)?.name
: "Select User}
<ChevronsUpDown className="ml-2 h-4 w-4 shrink-0 opacity-50" />
</Button> |
Beta Was this translation helpful? Give feedback.
-
My scroll worked adding
inside the component DialogPrimitive.Content |
Beta Was this translation helpful? Give feedback.
-
it works on my new project, i have created few weeks ago. but in my old project its still not working. for my project i have create a multiselect. so i used the old project
new project
in the old project, i am not being able to focus in the input, but in the new project, i can focus in the input and select the options as well. i have upgrade the libraries in the old projects too, yet its not working in the old project
these are the packages currently i am running in my projects. can any one tell me whats i am doing wrong? or any feedback is appreciated. |
Beta Was this translation helpful? Give feedback.
For popovers that are inside a dialog component, you must set the popover's modal prop to true.