From c18b55ecf26cc2bea8b8efc1112279b4e147b999 Mon Sep 17 00:00:00 2001 From: betavs Date: Tue, 9 Jan 2024 16:23:11 +0800 Subject: [PATCH] fix(tag-input): clickable when disabled --- src/tag-input/tag-input.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tag-input/tag-input.tsx b/src/tag-input/tag-input.tsx index da17b130bc..7ee0852448 100644 --- a/src/tag-input/tag-input.tsx +++ b/src/tag-input/tag-input.tsx @@ -116,6 +116,7 @@ export default defineComponent({ }; const onClick: TdInputProps['onClick'] = (ctx) => { + if (disabled.value) return; isFocused.value = true; tagInputRef.value.focus(); props.onClick?.(ctx);