@transferwise/components 0.0.0-experimental-f88eeb9 → 0.0.0-experimental-222fc9c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -6259,6 +6259,21 @@ const PolymorphicWithOverrides = /*#__PURE__*/React.forwardRef(function Polymorp
6259
6259
  });
6260
6260
  });
6261
6261
 
6262
+ function useVirtualKeyboard() {
6263
+ React.useEffect(() => {
6264
+ /* eslint-disable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6265
+ if ('virtualKeyboard' in navigator) {
6266
+ const virtualKeyboard = navigator.virtualKeyboard;
6267
+ const initialOverlaysContent = virtualKeyboard.overlaysContent;
6268
+ virtualKeyboard.overlaysContent = true;
6269
+ return () => {
6270
+ virtualKeyboard.overlaysContent = initialOverlaysContent;
6271
+ };
6272
+ }
6273
+ /* eslint-enable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6274
+ }, []);
6275
+ }
6276
+
6262
6277
  function PreventScroll() {
6263
6278
  overlays.usePreventScroll();
6264
6279
  return null;
@@ -6274,7 +6289,7 @@ function BottomSheet({
6274
6289
  onClose,
6275
6290
  onCloseEnd
6276
6291
  }) {
6277
- // useVirtualKeyboard();
6292
+ useVirtualKeyboard();
6278
6293
  const {
6279
6294
  refs,
6280
6295
  context