Skip to content

Commit

Permalink
chore: dropdown 只阻止事件冒泡
Browse files Browse the repository at this point in the history
  • Loading branch information
winixt committed Jun 19, 2023
1 parent df65ea1 commit 1cf4531
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion components/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export default defineComponent({
props.options.some((option) => option.icon),
);
const handleClick = (option: Option, event: Event) => {
event.preventDefault();
event.stopPropagation();
if (option.disabled) return;
const value = option[props.valueField] as Option['value'];
Expand Down

0 comments on commit 1cf4531

Please sign in to comment.