Skip to content

Commit

Permalink
Ensure keyboard dismisses before navigating to workspace list
Browse files Browse the repository at this point in the history
  • Loading branch information
huult committed Dec 11, 2024
1 parent 134d5d4 commit e799061
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ValuePicker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import useStyleUtils from '@hooks/useStyleUtils';
import Navigation from '@libs/Navigation/Navigation';
import variables from '@styles/variables';
import CONST from '@src/CONST';
import KeyboardUtils from '@src/utils/keyboard';
import type {ValuePickerItem, ValuePickerProps} from './types';
import ValueSelectorModal from './ValueSelectorModal';

Expand All @@ -14,7 +15,9 @@ function ValuePicker({value, label, items, placeholder = '', errorText = '', onI
const [isPickerVisible, setIsPickerVisible] = useState(false);

const showPickerModal = () => {
setIsPickerVisible(true);
KeyboardUtils.dismiss().then(() => {
setIsPickerVisible(true);
});
};

const hidePickerModal = () => {
Expand Down

0 comments on commit e799061

Please sign in to comment.