@deque/cauldron-react 6.4.1-canary.fead02fc → 6.4.2-canary.6c8aa876

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.
Files changed (2) hide show
  1. package/lib/index.js +7 -3
  2. package/package.json +1 -4
package/lib/index.js CHANGED
@@ -1729,13 +1729,17 @@ function Tooltip(_a) {
1729
1729
  };
1730
1730
  var targetElement = document.body;
1731
1731
  if (showTooltip) {
1732
- targetElement.addEventListener('keyup', handleEscape);
1732
+ targetElement.addEventListener('keyup', handleEscape, { capture: true });
1733
1733
  }
1734
1734
  else {
1735
- targetElement.removeEventListener('keyup', handleEscape);
1735
+ targetElement.removeEventListener('keyup', handleEscape, {
1736
+ capture: true
1737
+ });
1736
1738
  }
1737
1739
  return function () {
1738
- targetElement.removeEventListener('keyup', handleEscape);
1740
+ targetElement.removeEventListener('keyup', handleEscape, {
1741
+ capture: true
1742
+ });
1739
1743
  };
1740
1744
  }, [showTooltip]);
1741
1745
  // Handle hover and focus events for the targetElement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "6.4.1-canary.fead02fc",
3
+ "version": "6.4.2-canary.6c8aa876",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Fully accessible react components library for Deque Cauldron",
6
6
  "homepage": "https://cauldron.dequelabs.com/",
@@ -47,7 +47,6 @@
47
47
  "@testing-library/react": "^12",
48
48
  "@testing-library/user-event": "^14.5.2",
49
49
  "@types/classnames": "^2.2.10",
50
- "@types/enzyme-adapter-react-16": "^1.0.9",
51
50
  "@types/jest": "^29.5.11",
52
51
  "@types/jest-axe": "^3.5.4",
53
52
  "@types/node": "^17.0.42",
@@ -59,8 +58,6 @@
59
58
  "babel-plugin-module-resolver": "^4.0.0",
60
59
  "babel-plugin-transform-export-extensions": "^6.22.0",
61
60
  "concurrently": "^5.3.0",
62
- "enzyme": "^3.11.0",
63
- "enzyme-adapter-react-16": "^1.15.2",
64
61
  "jest": "^29.7.0",
65
62
  "jest-axe": "^8.0.0",
66
63
  "jest-environment-jsdom": "^29.7.0",