From bec35d03aa7433a8ca7b2bf962819e9fde87aafa Mon Sep 17 00:00:00 2001 From: John Date: Thu, 29 Apr 2021 18:32:06 +0800 Subject: [PATCH] fix(typography): `editable` should not trigger links #4015 (#4016) --- components/typography/Base.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/typography/Base.tsx b/components/typography/Base.tsx index 8c6c253fa7..f29b6cb2a4 100644 --- a/components/typography/Base.tsx +++ b/components/typography/Base.tsx @@ -189,7 +189,8 @@ const Base = defineComponent({ onExpand?.(e); } // ================ Edit ================ - function onEditClick() { + function onEditClick(e: MouseEvent) { + e.preventDefault(); state.originContent = props.content; triggerEdit(true); }