diff options
Diffstat (limited to 'modern/src/main/MainToolbar.js')
-rw-r--r-- | modern/src/main/MainToolbar.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/main/MainToolbar.js b/modern/src/main/MainToolbar.js index b6b0a556..859aa218 100644 --- a/modern/src/main/MainToolbar.js +++ b/modern/src/main/MainToolbar.js @@ -31,6 +31,8 @@ const MainToolbar = ({ filteredDevices, devicesOpen, setDevicesOpen, + keyword, + setKeyword, filter, setFilter, filterSort, @@ -63,8 +65,8 @@ const MainToolbar = ({ <OutlinedInput ref={inputRef} placeholder={t('sharedSearchDevices')} - value={filter.keyword} - onChange={(e) => setFilter({ ...filter, keyword: e.target.value })} + value={keyword} + onChange={(e) => setKeyword(e.target.value)} onFocus={() => setDevicesAnchorEl(toolbarRef.current)} onBlur={() => setDevicesAnchorEl(null)} endAdornment={( |