From 0d4fc56fa3f44e71dfc8affe889c3a6cfab04652 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 30 Oct 2022 11:41:52 -0700 Subject: Persist device filtering --- modern/src/main/MainToolbar.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modern/src/main/MainToolbar.js') 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 = ({ setFilter({ ...filter, keyword: e.target.value })} + value={keyword} + onChange={(e) => setKeyword(e.target.value)} onFocus={() => setDevicesAnchorEl(toolbarRef.current)} onBlur={() => setDevicesAnchorEl(null)} endAdornment={( -- cgit v1.2.3