Skip to content

Drawer component behaves unexpectdly with Forms, Input Field Loses Focus and Draggable Class Added on Click. #2247

@itse4elhaam

Description

@itse4elhaam

I have a form inside the drawer, text area and selects both work fine but input tags don't get focused when clicked by a mouse, it works when using tab though.

I think the drawer doesn't differentiate correctly between dragging click and input focus click.

To Reproduce, create a drawer component with a form inside it which contains input fields, I used Shadcn Input, Labels, Selects and everything.

Loved the new components but this issue is really bothering me.

shadcn-ui-issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions