Farzin-Firoozi / react-modern-drawer

https://farzin-firoozi.github.io/react-modern-drawer/
MIT License
216 stars 24 forks source link

onClose function issue #3

Closed bilalkocak closed 2 years ago

bilalkocak commented 2 years ago

I have multiple drawer,

I can open/close the first drawer works excellent, no problem, but if I open the second drawer, then I click out of the drawer for close, it running onClose function for the first drawer. You can put console log to onClose functions for testing.

Farzin-Firoozi commented 2 years ago

You can pass zIndex in the props which is 100 by default. you can change it based on your need in this case Drawer 1 => 100 Drawer 2 => 105

I hope this helps you :)

Farzin-Firoozi commented 2 years ago

If the problem still exists open another issue

closing due to no activity.