@cloudflare/component-tooltip 4.2.1 → 4.3.1
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 +12 -0
- package/es/Tooltip.js +6 -2
- package/lib/Tooltip.js +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 52f9f28c13: fixes a bug with removing captured event listeners
|
|
8
|
+
|
|
9
|
+
## 4.3.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- c7299ac5ac: upgrades components to support react 17 event bubbling
|
|
14
|
+
|
|
3
15
|
## 4.2.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/es/Tooltip.js
CHANGED
|
@@ -85,11 +85,15 @@ class Tooltip extends React.PureComponent {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
componentDidMount() {
|
|
88
|
-
document.addEventListener('keydown', this.escFunction
|
|
88
|
+
document.addEventListener('keydown', this.escFunction, {
|
|
89
|
+
capture: true
|
|
90
|
+
});
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
componentWillUnmount() {
|
|
92
|
-
document.removeEventListener('keydown', this.escFunction,
|
|
94
|
+
document.removeEventListener('keydown', this.escFunction, {
|
|
95
|
+
capture: true
|
|
96
|
+
});
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
render() {
|
package/lib/Tooltip.js
CHANGED
|
@@ -139,12 +139,16 @@ var Tooltip = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
139
139
|
}, {
|
|
140
140
|
key: "componentDidMount",
|
|
141
141
|
value: function componentDidMount() {
|
|
142
|
-
document.addEventListener('keydown', this.escFunction
|
|
142
|
+
document.addEventListener('keydown', this.escFunction, {
|
|
143
|
+
capture: true
|
|
144
|
+
});
|
|
143
145
|
}
|
|
144
146
|
}, {
|
|
145
147
|
key: "componentWillUnmount",
|
|
146
148
|
value: function componentWillUnmount() {
|
|
147
|
-
document.removeEventListener('keydown', this.escFunction,
|
|
149
|
+
document.removeEventListener('keydown', this.escFunction, {
|
|
150
|
+
capture: true
|
|
151
|
+
});
|
|
148
152
|
}
|
|
149
153
|
}, {
|
|
150
154
|
key: "render",
|
package/package.json
CHANGED