diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-11-02 15:48:07 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-11-02 15:48:07 -0500 |
commit | 81f27e0195e3cb38b6285309be399e9f1f7f8b18 (patch) | |
tree | e6cb34ce0892f1bb1f5bf229904e8a369fe556f3 /web/react/components/search_bar.jsx | |
parent | c9080aacd1a4e4a39d2f69008607087045dcdf73 (diff) | |
parent | 57220828a96d3089b208ca293cf23e88aed61839 (diff) | |
download | chat-81f27e0195e3cb38b6285309be399e9f1f7f8b18.tar.gz chat-81f27e0195e3cb38b6285309be399e9f1f7f8b18.tar.bz2 chat-81f27e0195e3cb38b6285309be399e9f1f7f8b18.zip |
Merge pull request #1270 from hmhealey/plt687
PLT-687 Changed search box to not autoselect all text on click
Diffstat (limited to 'web/react/components/search_bar.jsx')
-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 |