Browse Source

fix: fix param type in onKeyDown of TagInput

zhangyumei.0319 1 year ago
parent
commit
b735163cf1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/semi-ui/tagInput/index.tsx

+ 1 - 1
packages/semi-ui/tagInput/index.tsx

@@ -56,7 +56,7 @@ export interface TagInputProps {
     onFocus?: (e: React.MouseEvent<HTMLInputElement>) => void;
     onInputChange?: (value: string, e: React.MouseEvent<HTMLInputElement>) => void;
     onInputExceed?: ((value: string) => void);
-    onKeyDown?: (e: React.MouseEvent<HTMLInputElement>) => void;
+    onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
     onRemove?: (removedValue: string, idx: number) => void;
     placeholder?: string;
     insetLabel?: React.ReactNode;