Sfoglia il codice sorgente

fix: fix param type in onKeyDown of TagInput

zhangyumei.0319 1 anno fa
parent
commit
b735163cf1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;
     onFocus?: (e: React.MouseEvent<HTMLInputElement>) => void;
     onInputChange?: (value: string, e: React.MouseEvent<HTMLInputElement>) => void;
     onInputChange?: (value: string, e: React.MouseEvent<HTMLInputElement>) => void;
     onInputExceed?: ((value: string) => void);
     onInputExceed?: ((value: string) => void);
-    onKeyDown?: (e: React.MouseEvent<HTMLInputElement>) => void;
+    onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
     onRemove?: (removedValue: string, idx: number) => void;
     onRemove?: (removedValue: string, idx: number) => void;
     placeholder?: string;
     placeholder?: string;
     insetLabel?: React.ReactNode;
     insetLabel?: React.ReactNode;