You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	This commit is contained in:
		| @@ -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); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user