Clear Search Input After Entering It

Summary: per title

Reviewed By: nikoant

Differential Revision: D19143025

fbshipit-source-id: b371a55584b255b8f0a704eaa46e6a3eebad4a79
This commit is contained in:
Chaiwat Ekkaewnumchai
2019-12-18 04:59:11 -08:00
committed by Facebook Github Bot
parent e705024010
commit db721e94a6

View File

@@ -306,6 +306,7 @@ const Searchable = (
this.removeFilter(this.state.focusedToken);
} else if (e.key === 'Enter' && this.hasFocus() && this._inputRef) {
this.matchTags(this._inputRef.value, true);
this.setState({searchTerm: ''});
}
};