mirror of
https://github.com/laurent22/joplin.git
synced 2024-11-24 08:12:24 +02:00
Desktop: Fix bug where editor would scroll to focus global search (#3787)
This commit is contained in:
parent
5226f0019b
commit
7202066c1f
@ -119,7 +119,8 @@ export default function useEditorSearch(CodeMirror: any) {
|
|||||||
// We only want to highlight all matches when there is only 1 search term
|
// We only want to highlight all matches when there is only 1 search term
|
||||||
if (keywords.length !== 1 || keywords[0].value == '') {
|
if (keywords.length !== 1 || keywords[0].value == '') {
|
||||||
clearOverlay(this);
|
clearOverlay(this);
|
||||||
setPreviousKeywordValue('');
|
const prev = keywords.length > 1 ? keywords[0].value : '';
|
||||||
|
setPreviousKeywordValue(prev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user