Changed search box to not autoselect all text on click
Этот коммит содержится в:
@@ -90,14 +90,10 @@ export default class SearchBar extends React.Component {
|
|||||||
|
|
||||||
this.refs.autocomplete.handleInputChange(e.target, term);
|
this.refs.autocomplete.handleInputChange(e.target, term);
|
||||||
}
|
}
|
||||||
handleMouseInput(e) {
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
handleUserBlur() {
|
handleUserBlur() {
|
||||||
this.setState({focused: false});
|
this.setState({focused: false});
|
||||||
}
|
}
|
||||||
handleUserFocus(e) {
|
handleUserFocus() {
|
||||||
e.target.select();
|
|
||||||
$('.search-bar__container').addClass('focused');
|
$('.search-bar__container').addClass('focused');
|
||||||
|
|
||||||
this.setState({focused: true});
|
this.setState({focused: true});
|
||||||
@@ -198,7 +194,6 @@ export default class SearchBar extends React.Component {
|
|||||||
onBlur={this.handleUserBlur}
|
onBlur={this.handleUserBlur}
|
||||||
onChange={this.handleUserInput}
|
onChange={this.handleUserInput}
|
||||||
onKeyDown={this.handleKeyDown}
|
onKeyDown={this.handleKeyDown}
|
||||||
onMouseUp={this.handleMouseInput}
|
|
||||||
/>
|
/>
|
||||||
{isSearching}
|
{isSearching}
|
||||||
<SearchAutocomplete
|
<SearchAutocomplete
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user