mattjennings / react-modal

React modal components built for theme-ui

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dismiss all when stacking modals

jayliu50 opened this issue · comments

Will there be a way to dismiss the whole stack of modals at the same time when the close button is clicked on, rather than popping each and every modal off the stack?

Thank you so much for your work on this lib and sharing it!

Sorry, I think I have the answer closeAllModals()? https://github.com/mattjennings/react-modal-stack

Yup, closeAllModals is the way to do it!