Skip to content

[Feat] Autocomplete options cannot be selected by clicking #778

@Yedidya10

Description

@Yedidya10

Target Use Case

I'm posting the case as a feature, but it's basically a bug - just not in this library, but in the Google component itself, and I hope you can implement a solution for this.

I'm trying to display the "Autocomplete" component on a dialog with the ready-made shadcn ui component:

import * as DialogPrimitive from "@radix-ui/react-dialog"

function Dialog({
...props
}: React.ComponentProps<typeof DialogPrimitive.Root>) {
return <DialogPrimitive.Root data-slot="dialog" {...props} />
}

But a problem arises that after the window opens, the name suggestion menu cannot be selected by clicking the mouse, but only by navigating with arrows and the Enter key.

I tried first directly with the Google API and then with your example component, but it doesn't help because the problem lies in the fact that Google inserts the element in the body and this creates conflicts with the dialog.

I hope you can address this case,
Thank you.

Proposal

Not relevant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions