Skip to content

How to Disable PopoverTrigger Component? #3296

Closed Answered by if1eight0sty
if1eight0sty asked this question in Help
Discussion options

You must be logged in to vote
<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>

this is the solution i found. we need set the modal prop to true.
for reference here

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by if1eight0sty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant