summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-02 15:48:07 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-02 15:48:07 -0500
commit81f27e0195e3cb38b6285309be399e9f1f7f8b18 (patch)
treee6cb34ce0892f1bb1f5bf229904e8a369fe556f3 /web
parentc9080aacd1a4e4a39d2f69008607087045dcdf73 (diff)
parent57220828a96d3089b208ca293cf23e88aed61839 (diff)
downloadchat-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')
-rw-r--r--web/react/components/search_bar.jsx7
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