@applicaster/zapp-react-dom-app 12.0.0-rc.69 → 12.0.0-rc.70

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.
@@ -592,6 +592,12 @@ export function withInteractionManager(Component: React.FC) {
592
592
  focusManager.moveFocus(direction);
593
593
  }
594
594
 
595
+ if (!isDialogVisible) {
596
+ // run focus recovery on user interaction attempt
597
+ // probably we failed to set initial focus for some reason
598
+ focusManager.recoverFocus();
599
+ }
600
+
595
601
  if (
596
602
  displayState === DISPLAY_STATES.PLAYER ||
597
603
  displayState === DISPLAY_STATES.HUD
@@ -656,6 +662,9 @@ export function withInteractionManager(Component: React.FC) {
656
662
 
657
663
  onConfirmDialogClose() {
658
664
  this.confirmDialog.hideDialog();
665
+
666
+ // restore initial focus after closing dialog
667
+ focusManager.setInitialFocus();
659
668
  }
660
669
 
661
670
  render() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "12.0.0-rc.69",
3
+ "version": "12.0.0-rc.70",
4
4
  "description": "Zapp App Component for Applicaster's Quick Brick React Native App",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
24
24
  "dependencies": {
25
- "@applicaster/zapp-react-dom-ui-components": "12.0.0-rc.69",
26
- "@applicaster/zapp-react-native-bridge": "12.0.0-rc.69",
27
- "@applicaster/zapp-react-native-redux": "12.0.0-rc.69",
28
- "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.69",
29
- "@applicaster/zapp-react-native-utils": "12.0.0-rc.69",
25
+ "@applicaster/zapp-react-dom-ui-components": "12.0.0-rc.70",
26
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.70",
27
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.70",
28
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.70",
29
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.70",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "history": "^4.7.2",
32
32
  "react-router-dom": "^5.1.2",