Searchbox Enter is to clear, tabbing to clear button doesn't work, remove it

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-01-07 10:50:02 +00:00
parent 6ba5dc61e2
commit 7367c73a37

View file

@ -133,9 +133,11 @@ module.exports = createReactClass({
return null; return null;
} }
const clearButton = (!this.state.blurred || this.state.searchTerm) ? const clearButton = (!this.state.blurred || this.state.searchTerm) ?
(<AccessibleButton key="button" (<AccessibleButton
className="mx_SearchBox_closeButton" key="button"
onClick={ () => {this._clearSearch("button"); } }> tabIndex={-1}
className="mx_SearchBox_closeButton"
onClick={ () => {this._clearSearch("button"); } }>
</AccessibleButton>) : undefined; </AccessibleButton>) : undefined;
// show a shorter placeholder when blurred, if requested // show a shorter placeholder when blurred, if requested