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(web): prevent accidental modal closures on mouseup outside #15900

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

afv
Copy link
Contributor

@afv afv commented Feb 4, 2025

Many times I close modals by accident when selecting text, because the listener is click (does not matter when the mousedown began, only where the mouseup ends), for example:

2025-02-04_immich_modal_close.mp4

This is a suggested fix.

Copy link
Contributor

@alextran1502 alextran1502 left a comment

Choose a reason for hiding this comment

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

Thank you, I've been wanting to do a full sweep of this behavior across all forms components on the web

@alextran1502 alextran1502 enabled auto-merge (squash) February 4, 2025 13:43
@alextran1502 alextran1502 merged commit 97574d7 into immich-app:main Feb 4, 2025
34 of 35 checks passed
@afv afv deleted the fix/accidental-modal-close branch February 5, 2025 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants