Просмотр исходного кода

react-bootstrap-typeahead v2 syntax

Yuki Takei 8 лет назад
Родитель
Сommit
b95f349b84
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      resource/js/components/HeaderSearchBox/SearchForm.js

+ 1 - 1
resource/js/components/HeaderSearchBox/SearchForm.js

@@ -121,7 +121,7 @@ export default class SearchForm extends React.Component {
           <InputGroup>
           <InputGroup>
             <AsyncTypeahead
             <AsyncTypeahead
               ref={ref => this._typeahead = ref}
               ref={ref => this._typeahead = ref}
-              name="q"
+              inputProps={{name: "q", autoComplete: "off"}}
               isLoading={this.state.isLoading}
               isLoading={this.state.isLoading}
               labelKey="path"
               labelKey="path"
               minLength={2}
               minLength={2}