Skip to content

Commit

Permalink
fix(typography): editable should not trigger links vueComponent#4015 (
Browse files Browse the repository at this point in the history
  • Loading branch information
John60676 authored Apr 29, 2021
1 parent 3c4bd31 commit bec35d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/typography/Base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ const Base = defineComponent<InternalBlockProps>({
onExpand?.(e);
}
// ================ Edit ================
function onEditClick() {
function onEditClick(e: MouseEvent) {
e.preventDefault();
state.originContent = props.content;
triggerEdit(true);
}
Expand Down

0 comments on commit bec35d0

Please sign in to comment.