Clear prevSearch when closing modal
This commit is contained in:
parent
497f9e882c
commit
0d085a2b4d
2 changed files with 49 additions and 48 deletions
|
@ -56,6 +56,7 @@ const AddChannel = () => {
|
|||
dispatch(searchChannels(server, ''));
|
||||
setTimeout(() => inputEl.current.focus(), 0);
|
||||
} else {
|
||||
prevSearch.current = '';
|
||||
setQ('');
|
||||
}
|
||||
}, [modal.isOpen]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue