Skip to content

Commit

Permalink
fix(tag-input): clickable when disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Jan 9, 2024
1 parent 26772b1 commit c18b55e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tag-input/tag-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c18b55e

Please sign in to comment.