Przeglądaj źródła

react-bootstrap-typeahead v2 syntax

Yuki Takei 8 lat temu
rodzic
commit
b95f349b84

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

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