[WEB-1262] refactor: custom hook for common dropdown logic (#4420)
* refactor: custom hook for common dropdown logic * chore: clear query for label dropdowns
This commit is contained in:
parent
f13c190676
commit
639d24bd5a
12 changed files with 204 additions and 278 deletions
|
|
@ -57,6 +57,7 @@ export const IssueLabelSelect: React.FC<Props> = observer((props) => {
|
|||
const handleClose = () => {
|
||||
if (isDropdownOpen) setIsDropdownOpen(false);
|
||||
if (referenceElement) referenceElement.blur();
|
||||
setQuery("");
|
||||
};
|
||||
|
||||
const toggleDropdown = () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue