chore: spreadsheet layout dropdowns focus on toggle functionality added (#3833)

This commit is contained in:
Anmol Singh Bhatia 2024-02-29 13:23:37 +05:30 committed by GitHub
parent 34301e4399
commit 39136d3a9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {
const toggleDropdown = () => {
setIsOpen((prevIsOpen) => !prevIsOpen);
if (isOpen) onClose && onClose();
};
const dropdownOnChange = (val: string | null) => {

View File

@ -67,6 +67,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
const toggleDropdown = () => {
setIsOpen((prevIsOpen) => !prevIsOpen);
if (isOpen) onClose && onClose();
};
const dropdownOnChange = (val: string & string[]) => {