@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-f88eeb9",
3
+ "version": "0.0.0-experimental-222fc9c",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -4,13 +4,13 @@ export function useVirtualKeyboard() {
4
4
  useEffect(() => {
5
5
  /* eslint-disable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
6
6
  if ('virtualKeyboard' in navigator) {
7
- (navigator.virtualKeyboard as any).overlaysContent = true;
7
+ const virtualKeyboard: any = navigator.virtualKeyboard;
8
+ const initialOverlaysContent: unknown = virtualKeyboard.overlaysContent;
9
+ virtualKeyboard.overlaysContent = true;
10
+ return () => {
11
+ virtualKeyboard.overlaysContent = initialOverlaysContent;
12
+ };
8
13
  }
9
- return () => {
10
- if ('virtualKeyboard' in navigator) {
11
- (navigator.virtualKeyboard as any).overlaysContent = false;
12
- }
13
- };
14
14
  /* eslint-enable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
15
15
  }, []);
16
16
  }
@@ -43,7 +43,7 @@ export function BottomSheet({
43
43
  onClose,
44
44
  onCloseEnd,
45
45
  }: BottomSheetProps) {
46
- // useVirtualKeyboard();
46
+ useVirtualKeyboard();
47
47
 
48
48
  const { refs, context } = useFloating<Element>({
49
49
  open,