1
0
Эх сурвалжийг харах

fix: fix param type in onKeyDown of TagInput

zhangyumei.0319 1 жил өмнө
parent
commit
b735163cf1

+ 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;