vtex-apps / store-discussion

VTEX IO store builders' community
80 stars 5 forks source link

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

Open lucae4238 opened 1 year ago

lucae4238 commented 1 year ago

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

https://user-images.githubusercontent.com/82492849/198303150-6fdd73de-d2c9-4f33-a6b8-c1515b96c128.mp4