hide explore button when focusing filter field
This commit is contained in:
parent
4ffa8c7b4a
commit
0fe31f843a
3 changed files with 28 additions and 0 deletions
|
@ -94,6 +94,15 @@ module.exports = React.createClass({
|
|||
|
||||
_onFocus: function(ev) {
|
||||
ev.target.select();
|
||||
if (this.props.onFocus) {
|
||||
this.props.onFocus(ev);
|
||||
}
|
||||
},
|
||||
|
||||
_onBlur: function(ev) {
|
||||
if (this.props.onBlur) {
|
||||
this.props.onBlur(ev);
|
||||
}
|
||||
},
|
||||
|
||||
_clearSearch: function(source) {
|
||||
|
@ -131,6 +140,7 @@ module.exports = React.createClass({
|
|||
onChange={ this.onChange }
|
||||
onKeyDown={ this._onKeyDown }
|
||||
placeholder={ this.props.placeholder }
|
||||
onBlur={this._onBlur}
|
||||
/>
|
||||
{ clearButton }
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue