This commit is contained in:
tamaina 2023-08-03 05:16:25 +00:00
parent 01ff597e65
commit da3ca548fe
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ const emit = defineEmits<{
(ev: 'done', v: any): void;
(ev: 'close'): void;
(ev: 'closed'): void;
(ev: 'click'): void;
(ev: 'bgclick'): void;
(ev: 'hide'): void;
}>();
@ -75,7 +75,7 @@ function opening() {
}
function click() {
emit('click');
emit('bgclick');
if (props.manualShowing === null) modal.value?.close();
}
</script>

View File

@ -33,7 +33,7 @@ class ReactionPicker {
this.src.value = null;
this.onClosed!();
},
click: () => {
bgclick: () => {
this.manualShowing.value = false;
}
});