Skip to content

Making isOpen = false more accurate after closing a modal#1006

Open
patri-badger wants to merge 1 commit into
dimsemenov:masterfrom
patri-badger:master
Open

Making isOpen = false more accurate after closing a modal#1006
patri-badger wants to merge 1 commit into
dimsemenov:masterfrom
patri-badger:master

Conversation

@patri-badger

Copy link
Copy Markdown

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