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: 2 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.
For popovers that are inside a dialog component, you must set the popover's modal prop to true.