Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dismissAll not dismissing all bottom sheets #1529

Merged
merged 1 commit into from
Sep 17, 2023
Merged

fix: dismissAll not dismissing all bottom sheets #1529

merged 1 commit into from
Sep 17, 2023

Conversation

david-gomes5
Copy link
Contributor

Motivation

Fixes a regression introduced in v4.4.8 from #1309 that breaks dismissAll from the useBottomSheetModal hook when stacking multiple bottom sheet modals.

Reproduction

  • Run the example app
  • Press Stack Modals
  • Press multiple Present Modal [A|B|C] buttons to stack multiple bottom sheets
  • Press Dismiss All Modal button

Fails to dismiss all bottom sheets

@gorhom
Copy link
Owner

gorhom commented Sep 17, 2023

good catch @david-gomes5 ! thanks for the PR

@gorhom gorhom merged commit 6fc2cd1 into gorhom:master Sep 17, 2023
1 check failed
@david-gomes5 david-gomes5 deleted the fix-dismissAll-not-dismissing-multiple-bottom-sheets branch September 17, 2023 18:40
@bryanltobing
Copy link

bryanltobing commented Oct 20, 2023

just about to file an issue about this. calling dismiss in sheet1 and present in sheet2 at the same time causing glitch

but seems already fixed by this PR

Screen.Recording.2023-10-20.at.19.28.11.mov

Thanks

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.

None yet

3 participants