Skip to content

Conversation

@patri-badger
Copy link

I had an issue in the project I'm working on. We closed the modal and a backend process was so fast that when we tried to open again the modal it opened it and closed it immediately (invisible to us) because the setTimeout in close finished after we opened the new modal. This provoked our app inaccesible in the places the modal was shown. Typing in console isOpen it said true.

We were checking before opening the modal isOpen but it had false and we tried to open a new modal. With this change isOpen will be false when it has really close the modal. I hope you like this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant