Skip to content

Popover scrolling issue with mouse wheel #4175

Closed Answered by nicolasherediaerro
if1eight0sty asked this question in Q&A
Discussion options

You must be logged in to vote

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>

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@aldoBangun
Comment options

@nicolasherediaerro
Comment options

@nicolasherediaerro
Comment options

Answer selected by if1eight0sty
Comment options

You must be logged in to vote
1 reply
@sgfort
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants