Преглед изворни кода

Merge pull request #2086 from DouyinFE/types/tagInput

fix: fix param type error in onKeyDown of TagInput
代强 пре 1 година
родитељ
комит
e5f63f2b28
1 измењених фајлова са 1 додато и 1 уклоњено
  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;