diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-11-02 11:51:16 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-11-02 12:13:25 -0500 |
commit | 57220828a96d3089b208ca293cf23e88aed61839 (patch) | |
tree | 5e6685107fd1b7510e23ca28368b4333f832b3fb /web/react | |
parent | e5a5934ab4a950ce5f920958e694397c584430d5 (diff) | |
download | chat-57220828a96d3089b208ca293cf23e88aed61839.tar.gz chat-57220828a96d3089b208ca293cf23e88aed61839.tar.bz2 chat-57220828a96d3089b208ca293cf23e88aed61839.zip |
Changed search box to not autoselect all text on click
Diffstat (limited to 'web/react')
-rw-r--r-- | web/react/components/search_bar.jsx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/web/react/components/search_bar.jsx b/web/react/components/search_bar.jsx index 1b81a5ee0..d6ca1f612 100644 --- a/web/react/components/search_bar.jsx +++ b/web/react/components/search_bar.jsx @@ -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 |