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:
parent
32c81ad8c2
commit
abf6c3f3f1
@ -35,6 +35,7 @@ class HeaderComponent extends React.Component {
|
||||
this.search_onClear = (event) => {
|
||||
this.setState({ searchQuery: '' });
|
||||
triggerOnQuery('');
|
||||
if (this.searchElement_) this.searchElement_.focus();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user