mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 22:35:50 +01:00
refactor(react/note_icon): introduce autofocus at text box level
This commit is contained in:
@@ -102,11 +102,6 @@ function NoteIconList() {
|
||||
loadIcons();
|
||||
}, [ search, categoryId ]);
|
||||
|
||||
// Focus on search by default.
|
||||
useEffect(() => {
|
||||
searchBoxRef?.current?.focus();
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div class="filter-row">
|
||||
@@ -124,6 +119,7 @@ function NoteIconList() {
|
||||
type="text"
|
||||
name="icon-search"
|
||||
currentValue={search} onChange={setSearch}
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user