Skip to content

[FIX] Modal keeps state if reset too fast.#23791

Merged
gabriellsh merged 5 commits intodevelopfrom
fix/modalKeepsState
Dec 7, 2021
Merged

[FIX] Modal keeps state if reset too fast.#23791
gabriellsh merged 5 commits intodevelopfrom
fix/modalKeepsState

Conversation

@gabriellsh
Copy link
Copy Markdown
Member

@gabriellsh gabriellsh commented Nov 25, 2021

Proposed changes (including videos or screenshots)

Queued updates so the Modal has a chance to close.
Used a random key to ensure modal doesn't keep it's state.

Issue(s)

Closes #23535

Steps to test or reproduce

Further comments

Copy link
Copy Markdown
Member

@tassoevan tassoevan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've suggested privately to @gabriellsh to use unique key props to ensure the modal state is dropped between two setModal() calls. It will require only the last useEffect hook.

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.

Error when uploading multiple files (4.0-4.0.3)

3 participants