Clear Search Input After Entering It
Summary: per title Reviewed By: nikoant Differential Revision: D19143025 fbshipit-source-id: b371a55584b255b8f0a704eaa46e6a3eebad4a79
This commit is contained in:
committed by
Facebook Github Bot
parent
e705024010
commit
db721e94a6
@@ -306,6 +306,7 @@ const Searchable = (
|
|||||||
this.removeFilter(this.state.focusedToken);
|
this.removeFilter(this.state.focusedToken);
|
||||||
} else if (e.key === 'Enter' && this.hasFocus() && this._inputRef) {
|
} else if (e.key === 'Enter' && this.hasFocus() && this._inputRef) {
|
||||||
this.matchTags(this._inputRef.value, true);
|
this.matchTags(this._inputRef.value, true);
|
||||||
|
this.setState({searchTerm: ''});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user