@transferwise/components 0.0.0-experimental-b5b2cab → 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
@@ -6263,13 +6263,13 @@ function useVirtualKeyboard() {
6263
6263
  React.useEffect(() => {
6264
6264
  /* eslint-disable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6265
6265
  if ('virtualKeyboard' in navigator) {
6266
- navigator.virtualKeyboard.overlaysContent = true;
6266
+ const virtualKeyboard = navigator.virtualKeyboard;
6267
+ const initialOverlaysContent = virtualKeyboard.overlaysContent;
6268
+ virtualKeyboard.overlaysContent = true;
6269
+ return () => {
6270
+ virtualKeyboard.overlaysContent = initialOverlaysContent;
6271
+ };
6267
6272
  }
6268
- return () => {
6269
- if ('virtualKeyboard' in navigator) {
6270
- navigator.virtualKeyboard.overlaysContent = false;
6271
- }
6272
- };
6273
6273
  /* eslint-enable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6274
6274
  }, []);
6275
6275
  }