fix(frontend): 드래그 시 노트 클릭 이벤트가 발생함

This commit is contained in:
NoriDev 2023-12-23 00:26:10 +09:00
parent 8f4fdd905f
commit f90044f9df
3 changed files with 3 additions and 3 deletions

View file

@ -393,7 +393,7 @@ if (!props.mock) {
}
function noteClick(ev: MouseEvent) {
if (!expandOnNoteClick) ev.stopPropagation();
if (!expandOnNoteClick || window.getSelection().toString() !== '') ev.stopPropagation();
else router.push(notePage(appearNote.value));
}

View file

@ -56,7 +56,7 @@ onMounted(() => {
});
function noteClick(ev: MouseEvent) {
if (!expandOnNoteClick || !props.enableNoteClick) ev.stopPropagation();
if (!expandOnNoteClick || !props.enableNoteClick || window.getSelection().toString() !== '') ev.stopPropagation();
else router.push(notePage(props.note));
}
</script>

View file

@ -88,7 +88,7 @@ if (props.detail) {
}
function noteClick(ev: MouseEvent) {
if (!expandOnNoteClick) ev.stopPropagation();
if (!expandOnNoteClick || window.getSelection().toString() !== '') ev.stopPropagation();
else router.push(notePage(props.note));
}
</script>