@dhis2-ui/button 9.8.6 → 9.8.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,9 +51,8 @@ class SplitButton extends _react.Component {
51
51
  _defineProperty(this, "anchorRef", /*#__PURE__*/_react.default.createRef());
52
52
 
53
53
  _defineProperty(this, "handleKeyDown", event => {
54
- event.preventDefault();
55
-
56
54
  if (event.key === 'Escape' && this.state.open) {
55
+ event.preventDefault();
57
56
  event.stopPropagation();
58
57
  this.setState({
59
58
  open: false
@@ -29,9 +29,8 @@ class SplitButton extends Component {
29
29
  _defineProperty(this, "anchorRef", /*#__PURE__*/React.createRef());
30
30
 
31
31
  _defineProperty(this, "handleKeyDown", event => {
32
- event.preventDefault();
33
-
34
32
  if (event.key === 'Escape' && this.state.open) {
33
+ event.preventDefault();
35
34
  event.stopPropagation();
36
35
  this.setState({
37
36
  open: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/button",
3
- "version": "9.8.6",
3
+ "version": "9.8.8",
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.6",
37
- "@dhis2-ui/loader": "9.8.6",
38
- "@dhis2-ui/popper": "9.8.6",
39
- "@dhis2/ui-constants": "9.8.6",
40
- "@dhis2/ui-icons": "9.8.6",
36
+ "@dhis2-ui/layer": "9.8.8",
37
+ "@dhis2-ui/loader": "9.8.8",
38
+ "@dhis2-ui/popper": "9.8.8",
39
+ "@dhis2/ui-constants": "9.8.8",
40
+ "@dhis2/ui-icons": "9.8.8",
41
41
  "classnames": "^2.3.1",
42
42
  "prop-types": "^15.7.2"
43
43
  },