Skip to content

<input/> trigger, close dropdown after leaving input/content #537

@Bouke

Description

@Bouke

I'm trying to build a date picker component which has an <input /> as trigger. After focussing the input field (either through keyboard or mouse), that should open the dropdown. After leaving the [input field/dropdown] I want the dropdown to close. Specifying onBlur on the component doesn't work, as that'll close the dropdown as soon as I start interacting with the content in the dropdown. Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions