1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Electron: Fixes #697: Focus search text input after clearing search

This commit is contained in:
Laurent Cozic 2018-09-06 18:37:39 +01:00
parent 32c81ad8c2
commit abf6c3f3f1

View File

@ -35,6 +35,7 @@ class HeaderComponent extends React.Component {
this.search_onClear = (event) => {
this.setState({ searchQuery: '' });
triggerOnQuery('');
if (this.searchElement_) this.searchElement_.focus();
}
}