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

react-bootstrap-typeahead v2 syntax

Yuki Takei пре 8 година
родитељ
комит
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>
             <AsyncTypeahead
               ref={ref => this._typeahead = ref}
-              name="q"
+              inputProps={{name: "q", autoComplete: "off"}}
               isLoading={this.state.isLoading}
               labelKey="path"
               minLength={2}