mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
This commit is contained in:
parent
108b5b4cdc
commit
1501238730
@ -80,6 +80,11 @@ function SearchBar(props: Props) {
|
||||
}, [props.selectedNoteId]);
|
||||
|
||||
function onChange(event: any) {
|
||||
if (event.value.length === 0) {
|
||||
// Revert to previous state if query string becomes empty
|
||||
void onExitSearch();
|
||||
return;
|
||||
}
|
||||
setSearchStarted(true);
|
||||
setQuery(event.value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user