Skip to content

Allow Drawer's dragToClose to be disabled by props #697

@lucae4238

Description

@lucae4238

What problem are you trying to solve?.
When using the drawer with a Google Map, for example, it's impossible to navigate inside it because the drawer closes.

Describe the solution you'd like
It would be nice to disable the drag to close with a prop to the drawer.

Why do you think this feature should be available to all stores?

Any store that wants to use the drawer and navigate easily a Google Map or simply doesn't want to allow users to drag to close the drawer.

Describe alternatives you've considered
I've tried using external libraries for a drawer but they don't work very well in the VTEX environment. Most tend to simply not work. There's also no way to remove the event listeners for the drawer.

Additional context
I'm adding a video of the issue that I explained about the Google Map

drawer.mp4

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