Skip to content

fix: set dismissable={false} on ValidationQueue and NoteEdit dialogs - #418

Open
AliMahmoudDev wants to merge 1 commit into
AntoC-dev:mainfrom
AliMahmoudDev:fix/dialog-dismissable-prop
Open

AliMahmoudDev wants to merge 1 commit into
AntoC-dev:mainfrom
AliMahmoudDev:fix/dialog-dismissable-prop

Conversation

@AliMahmoudDev

Copy link
Copy Markdown

Fix for #302

Problem

Two related modal issues:

  1. ValidationQueue and related dialogs close when the user taps outside — they should stay open throughout the validation flow
  2. Note dialog allows tapping on elements behind it (modal does not fully block interaction)

Solution

  • Set dismissable={false} on the SimilarityDialog (used by ValidationQueue) to prevent accidental dismissal when tapping outside the dialog
  • Set dismissable={false} on the NoteEditDialog to prevent losing unsaved note edits and to block background interaction

The dismissable prop on React Native Paper Dialog components controls whether the dialog can be closed by tapping outside. Setting it to false ensures these important dialogs stay open until the user explicitly chooses an action.

Files Changed

  • src/components/dialogs/SimilarityDialog.tsx — added dismissable={false}
  • src/components/dialogs/NoteEditDialog.tsx — added dismissable={false}

Closes #302

- SimilarityDialog (used by ValidationQueue) now has dismissable={false}
  to prevent accidental dismissal when tapping outside the dialog
- NoteEditDialog now has dismissable={false} to prevent losing
  unsaved note edits and to block background interaction

Fixes AntoC-dev#302

This branch has not been deployed

No deployments
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.

Bug: dialogs incorrectly close on outside tap / allow background interaction

1 participant