Clear prevSearch when closing modal
This commit is contained in:
parent
497f9e882c
commit
0d085a2b4d
File diff suppressed because one or more lines are too long
@ -56,6 +56,7 @@ const AddChannel = () => {
|
|||||||
dispatch(searchChannels(server, ''));
|
dispatch(searchChannels(server, ''));
|
||||||
setTimeout(() => inputEl.current.focus(), 0);
|
setTimeout(() => inputEl.current.focus(), 0);
|
||||||
} else {
|
} else {
|
||||||
|
prevSearch.current = '';
|
||||||
setQ('');
|
setQ('');
|
||||||
}
|
}
|
||||||
}, [modal.isOpen]);
|
}, [modal.isOpen]);
|
||||||
|
Loading…
Reference in New Issue
Block a user