Merge pull request #5330 from gitbutlerapp/e-branch-2

fix: Modal closes on mouse down outside
This commit is contained in:
Esteban Vega 2024-10-28 14:52:03 +01:00 committed by GitHub
commit 3b8a96ca47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,7 +96,7 @@
use:portal={'body'}
class="modal-container {isClosing ? 'closing' : 'open'}"
class:open
onclick={(e) => {
onmousedown={(e) => {
e.stopPropagation();
if (e.target === e.currentTarget) {