@khanacademy/wonder-blocks-popover 5.0.3 → 5.0.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @khanacademy/wonder-blocks-popover
2
2
 
3
+ ## 5.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - c9b03476: Fixes bug where `focus-manager` overrides all tab indices within popover
8
+
9
+ ## 5.0.4
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [0de25cd8]
14
+ - @khanacademy/wonder-blocks-tokens@4.0.0
15
+ - @khanacademy/wonder-blocks-icon-button@6.0.6
16
+ - @khanacademy/wonder-blocks-modal@7.0.4
17
+ - @khanacademy/wonder-blocks-tooltip@4.0.4
18
+
3
19
  ## 5.0.3
4
20
 
5
21
  ### Patch Changes
package/dist/es/index.js CHANGED
@@ -293,8 +293,9 @@ class FocusManager extends React.Component {
293
293
  }
294
294
  };
295
295
  this.changeFocusabilityInsidePopover = (enabled = true) => {
296
- const tabIndex = enabled ? "0" : "-1";
297
296
  this.elementsThatCanBeFocusableInsidePopover.forEach(element => {
297
+ var _element$getAttribute;
298
+ const tabIndex = enabled ? (_element$getAttribute = element.getAttribute("tabIndex")) != null ? _element$getAttribute : "0" : "-1";
298
299
  element.setAttribute("tabIndex", tabIndex);
299
300
  });
300
301
  };
package/dist/index.js CHANGED
@@ -323,8 +323,9 @@ class FocusManager extends React__namespace.Component {
323
323
  }
324
324
  };
325
325
  this.changeFocusabilityInsidePopover = (enabled = true) => {
326
- const tabIndex = enabled ? "0" : "-1";
327
326
  this.elementsThatCanBeFocusableInsidePopover.forEach(element => {
327
+ var _element$getAttribute;
328
+ const tabIndex = enabled ? (_element$getAttribute = element.getAttribute("tabIndex")) != null ? _element$getAttribute : "0" : "-1";
328
329
  element.setAttribute("tabIndex", tabIndex);
329
330
  });
330
331
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-popover",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -18,10 +18,10 @@
18
18
  "dependencies": {
19
19
  "@babel/runtime": "^7.18.6",
20
20
  "@khanacademy/wonder-blocks-core": "^11.1.0",
21
- "@khanacademy/wonder-blocks-icon-button": "^6.0.5",
22
- "@khanacademy/wonder-blocks-modal": "^7.0.3",
23
- "@khanacademy/wonder-blocks-tokens": "^3.0.1",
24
- "@khanacademy/wonder-blocks-tooltip": "^4.0.3",
21
+ "@khanacademy/wonder-blocks-icon-button": "^6.0.6",
22
+ "@khanacademy/wonder-blocks-modal": "^7.0.4",
23
+ "@khanacademy/wonder-blocks-tokens": "^4.0.0",
24
+ "@khanacademy/wonder-blocks-tooltip": "^4.0.4",
25
25
  "@khanacademy/wonder-blocks-typography": "^3.0.5"
26
26
  },
27
27
  "peerDependencies": {