fix: update dropdown width (#2181)

* fix: update dropdown width

* fix conflict

* refactor dropdown width state
This commit is contained in:
Alfred Louis
2023-10-24 21:21:51 +07:00
committed by GitHub
parent dfc59b2751
commit 350410b0fe
7 changed files with 66 additions and 7 deletions

View File

@ -25,6 +25,8 @@ export const useDropdown = (props?: UseDropdownProps) => {
setDropdownHotkeyScope,
isDropdownOpen,
setIsDropdownOpen,
dropdownWidth,
setDropdownWidth,
} = useDropdownStates({
scopeId,
});
@ -61,5 +63,7 @@ export const useDropdown = (props?: UseDropdownProps) => {
scopeId,
dropdownHotkeyScope,
setDropdownHotkeyScope,
dropdownWidth,
setDropdownWidth,
};
};