Browse Source

fix: change the innerProps from autofocus to autoFocus to avoid warning in the development env

林艳 1 year ago
parent
commit
d0234819b3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/semi-ui/autoComplete/index.tsx

+ 2 - 2
packages/semi-ui/autoComplete/index.tsx

@@ -168,7 +168,7 @@ class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<AutoComple
     static Option = Option;
 
     static __SemiComponentName__ = "AutoComplete";
-    
+
     static defaultProps = getDefaultPropsFromGlobalConfig(AutoComplete.__SemiComponentName__, {
         stopPropagation: true,
         motion: true,
@@ -406,7 +406,7 @@ class AutoComplete<T extends AutoCompleteItems> extends BaseComponent<AutoComple
         const innerProps = {
             disabled,
             placeholder,
-            autofocus: autoFocus,
+            autoFocus: autoFocus,
             onChange: this.onSearch,
             onClear: this.onInputClear,
             'aria-label': this.props['aria-label'],