@via-profit/ui-kit 0.1.0-rc.34 → 0.1.0-rc.35

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.
@@ -85,7 +85,7 @@ const ModalWrapper = props => {
85
85
  containerRef.current.focus();
86
86
  }
87
87
  const keydown = (event) => {
88
- if (event.key.toLowerCase() !== 'tab') {
88
+ if (event.key.toLowerCase() !== 'tab' || !isOpenProp) {
89
89
  return;
90
90
  }
91
91
  event.preventDefault();
@@ -99,7 +99,7 @@ const ModalWrapper = props => {
99
99
  }
100
100
  window.document.removeEventListener('keydown', keydown);
101
101
  };
102
- }, [nextFocus]);
102
+ }, [nextFocus, isOpenProp]);
103
103
  /**
104
104
  * Component will unmount
105
105
  * Mark component as unmounted
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@via-profit/ui-kit",
3
- "version": "0.1.0-rc.34",
3
+ "version": "0.1.0-rc.35",
4
4
  "description": "UI Kit",
5
5
  "repository": {
6
6
  "type": "git",