Skip to content

Commit

Permalink
Merge pull request #53893 from huult/53327-blank-area-below-workspace…
Browse files Browse the repository at this point in the history
…-list

Ensure keyboard dismisses before navigating to workspace list
  • Loading branch information
rafecolton authored Dec 14, 2024
2 parents 0871429 + e799061 commit 258e2be
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 258e2be

Please sign in to comment.