Skip to content

Commit

Permalink
fix(select-input): 多选情况下按下Enter键后触发了focus事件而不是enter事件 (#2694)
Browse files Browse the repository at this point in the history
fix #2525
  • Loading branch information
dexterBo authored Aug 15, 2023
1 parent 539247e commit dc52ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/select-input/useMultiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default function useMultiple(props: TdSelectInputProps, context: SetupCon
const onEnter: TagInputProps['onEnter'] = (val, ctx) => {
const params = { ...ctx, tagInputValue: val };
props.onEnter?.(props.value, params);
context.emit('focus', props.value, params);
context.emit('enter', props.value, params);
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down

0 comments on commit dc52ba2

Please sign in to comment.