Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoaphantn7604 committed Oct 11, 2024
1 parent f3eed81 commit ed3489f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Dropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ const DropdownComponent: <T>(
if (onBlur) {
onBlur();
}

if (keyboardHeight > 0) {
return Keyboard.dismiss();
}
}
}, [disable, onBlur]);
}, [disable, keyboardHeight, onBlur]);

const font = useCallback(() => {
if (fontFamily) {
Expand Down
4 changes: 4 additions & 0 deletions src/components/MultiSelect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ const MultiSelectComponent: <T>(
if (onBlur) {
onBlur();
}

if (keyboardHeight > 0) {
return Keyboard.dismiss();
}
}
};

Expand Down

0 comments on commit ed3489f

Please sign in to comment.