fix(typography): `editable` should not trigger links #4015 (#4016)

pull/4021/head
John 2021-04-29 18:32:06 +08:00 committed by GitHub
parent 3c4bd31a77
commit bec35d03aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ const Base = defineComponent<InternalBlockProps>({
onExpand?.(e); onExpand?.(e);
} }
// ================ Edit ================ // ================ Edit ================
function onEditClick() { function onEditClick(e: MouseEvent) {
e.preventDefault();
state.originContent = props.content; state.originContent = props.content;
triggerEdit(true); triggerEdit(true);
} }