fix(frontend): 드래그 시 노트 클릭 이벤트가 발생함
This commit is contained in:
parent
8f4fdd905f
commit
f90044f9df
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue