Skip to content

Commit bec35d0

Browse files
authored
fix(typography): editable should not trigger links #4015 (#4016)
1 parent 3c4bd31 commit bec35d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/typography/Base.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ const Base = defineComponent<InternalBlockProps>({
189189
onExpand?.(e);
190190
}
191191
// ================ Edit ================
192-
function onEditClick() {
192+
function onEditClick(e: MouseEvent) {
193+
e.preventDefault();
193194
state.originContent = props.content;
194195
triggerEdit(true);
195196
}

0 commit comments

Comments
 (0)