mirror of
https://github.com/julyx10/lap.git
synced 2026-10-02 01:54:57 +08:00
fix(ui): defer actions until mouse release
Run Album Info confirmation and cancellation on mouseup, and remove the duplicate mousedown close action from Media Viewer.
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
<div class="mt-4 flex justify-end space-x-4">
|
||||
<button
|
||||
class="t-button-default"
|
||||
@mousedown.left.stop.prevent="clickCancel"
|
||||
@mouseup.left.stop.prevent="clickCancel"
|
||||
@click="!$event.detail && clickCancel()"
|
||||
>
|
||||
{{ $t('msgbox.cancel') }}
|
||||
@@ -137,7 +137,7 @@
|
||||
<button
|
||||
class="t-button-primary"
|
||||
:disabled="inputNameValue.trim().length === 0 || selectedFolder.length === 0"
|
||||
@mousedown.left.stop.prevent="clickOk"
|
||||
@mouseup.left.stop.prevent="clickOk"
|
||||
@click="!$event.detail && clickOk()"
|
||||
>
|
||||
{{ $t('msgbox.ok') }}
|
||||
|
||||
@@ -229,7 +229,6 @@
|
||||
/>
|
||||
<IconClose
|
||||
class="p-3 w-12 h-10 text-base-content/70 hover:text-base-content hover:bg-red-500 transition-colors duration-300 cursor-pointer"
|
||||
@mousedown.stop="$emit('close')"
|
||||
@click.stop="$emit('close')"
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user