Merge pull request #1270 from hmhealey/plt687

PLT-687 Changed search box to not autoselect all text on click
Этот коммит содержится в:
Christopher Speller
2015-11-02 15:48:07 -05:00
родитель c9080aacd1 57220828a9
Коммит 81f27e0195

Просмотреть файл

@@ -90,14 +90,10 @@ export default class SearchBar extends React.Component {
this.refs.autocomplete.handleInputChange(e.target, term);
}
handleMouseInput(e) {
e.preventDefault();
}
handleUserBlur() {
this.setState({focused: false});
}
handleUserFocus(e) {
e.target.select();
handleUserFocus() {
$('.search-bar__container').addClass('focused');
this.setState({focused: true});
@@ -198,7 +194,6 @@ export default class SearchBar extends React.Component {
onBlur={this.handleUserBlur}
onChange={this.handleUserInput}
onKeyDown={this.handleKeyDown}
onMouseUp={this.handleMouseInput}
/>
{isSearching}
<SearchAutocomplete