Commit 43d1251
fix(website): prevent revoke modal from closing on backdrop click (#6402)
## Summary
Fixes #6401.
The sequence revoke confirmation modal (shown when clicking "Revoke this
sequence" on the sequence details page) was dismissable by clicking the
backdrop. This is easy to do accidentally — and discards whatever
revocation reason the user has typed — so the modal felt fragile and
confusing.
This PR flips `closeOnClickOutside` from `true` to `false` in
`displayRevocationDialog`
(`website/src/components/SequenceDetailsPage/RevokeButton.tsx`). The
modal now only closes via the explicit Cancel button, the ✕ button in
the corner, or Confirm.
This matches the behavior users typically expect from a
destructive-action confirmation modal: an outside click is much more
likely to be accidental than intentional, especially when there is form
state inside.
## Test
Theo checked working as intended
🤖 Generated with [Claude Code](https://claude.com/claude-code)
🚀 Preview: https://fix-revoke-modal-backdrop.loculus.org
Co-authored-by: theosanderson-agent <theo@theo.io>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Theo Sanderson <theo@sndrsn.co.uk>1 parent 9a25530 commit 43d1251
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
0 commit comments