Skip to content

Note for using within a Dialog #2

Description

@mjsisley

Nice component! Shadcn and radix are pretty great and thanks for putting this out there.

As an FYI for using within a Dialog component; in order to make this component functional I had to create a Popover component that wasn't wrapped in a PopoverPrimitive.Portal. When used in the context of within a Dialog - I was unable to interact with anything within the Popover (I was able to focus the Group Items after adding pointer-events-auto - but for reasons I'm not sure on - I could not get focus to the CommandInput except after closing the Edit Dialog).

This is of course a better issue for the shadcn repo (possibly exposing a variant of PopoverContent component); but thought I'd leave a note here in case anyone tries to use your component within a Dialog

Thanks again!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions