@dhis2-ui/button 9.8.3 → 9.8.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -87,9 +87,8 @@ class DropdownButton extends _react.Component {
|
|
87
87
|
_defineProperty(this, "anchorRef", /*#__PURE__*/_react.default.createRef());
|
88
88
|
|
89
89
|
_defineProperty(this, "handleKeyDown", event => {
|
90
|
-
event.preventDefault();
|
91
|
-
|
92
90
|
if (event.key === 'Escape' && this.state.open) {
|
91
|
+
event.preventDefault();
|
93
92
|
event.stopPropagation();
|
94
93
|
this.setState({
|
95
94
|
open: false
|
@@ -68,9 +68,8 @@ class DropdownButton extends Component {
|
|
68
68
|
_defineProperty(this, "anchorRef", /*#__PURE__*/React.createRef());
|
69
69
|
|
70
70
|
_defineProperty(this, "handleKeyDown", event => {
|
71
|
-
event.preventDefault();
|
72
|
-
|
73
71
|
if (event.key === 'Escape' && this.state.open) {
|
72
|
+
event.preventDefault();
|
74
73
|
event.stopPropagation();
|
75
74
|
this.setState({
|
76
75
|
open: false
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dhis2-ui/button",
|
3
|
-
"version": "9.8.
|
3
|
+
"version": "9.8.4",
|
4
4
|
"description": "UI Button",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -33,11 +33,11 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@dhis2/prop-types": "^3.1.2",
|
36
|
-
"@dhis2-ui/layer": "9.8.
|
37
|
-
"@dhis2-ui/loader": "9.8.
|
38
|
-
"@dhis2-ui/popper": "9.8.
|
39
|
-
"@dhis2/ui-constants": "9.8.
|
40
|
-
"@dhis2/ui-icons": "9.8.
|
36
|
+
"@dhis2-ui/layer": "9.8.4",
|
37
|
+
"@dhis2-ui/loader": "9.8.4",
|
38
|
+
"@dhis2-ui/popper": "9.8.4",
|
39
|
+
"@dhis2/ui-constants": "9.8.4",
|
40
|
+
"@dhis2/ui-icons": "9.8.4",
|
41
41
|
"classnames": "^2.3.1",
|
42
42
|
"prop-types": "^15.7.2"
|
43
43
|
},
|