carbon-components
Advanced tools
Comparing version 7.4.4 to 7.4.5
@@ -57,2 +57,11 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
}); | ||
_this.element.addEventListener('keydown', function (evt) { | ||
if (evt.which === 13) { | ||
var eventElement = eventMatches(evt, _this.options.eventTrigger); | ||
if (eventElement) { | ||
_this._toggleState(eventElement, evt); | ||
} | ||
} | ||
}); | ||
return _this; | ||
@@ -59,0 +68,0 @@ } |
@@ -116,3 +116,5 @@ var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
if (triggerNode && triggerNode.offsetParent) { | ||
return; | ||
if (event.which === 13) { | ||
this._updateMenuState(); | ||
} | ||
} | ||
@@ -119,0 +121,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://carbondesignsystem.com/", | ||
"version": "7.4.4", | ||
"version": "7.4.5", | ||
"module": "es/index.js", | ||
@@ -8,0 +8,0 @@ "main": "umd/index.js", |
@@ -43,2 +43,11 @@ import mixin from '../../globals/js/misc/mixin'; | ||
}); | ||
this.element.addEventListener('keydown', (evt) => { | ||
if (evt.which === 13) { | ||
const eventElement = eventMatches(evt, this.options.eventTrigger); | ||
if (eventElement) { | ||
this._toggleState(eventElement, evt); | ||
} | ||
} | ||
}); | ||
} | ||
@@ -45,0 +54,0 @@ |
@@ -79,3 +79,5 @@ import eventMatches from '../../globals/js/misc/event-matches'; | ||
if (triggerNode && triggerNode.offsetParent) { | ||
return; | ||
if (event.which === 13) { | ||
this._updateMenuState(); | ||
} | ||
} | ||
@@ -82,0 +84,0 @@ |
@@ -134,2 +134,11 @@ (function (global, factory) { | ||
}); | ||
_this.element.addEventListener('keydown', function (evt) { | ||
if (evt.which === 13) { | ||
var eventElement = (0, _eventMatches2.default)(evt, _this.options.eventTrigger); | ||
if (eventElement) { | ||
_this._toggleState(eventElement, evt); | ||
} | ||
} | ||
}); | ||
return _this; | ||
@@ -136,0 +145,0 @@ } |
@@ -199,3 +199,5 @@ (function (global, factory) { | ||
if (triggerNode && triggerNode.offsetParent) { | ||
return; | ||
if (event.which === 13) { | ||
this._updateMenuState(); | ||
} | ||
} | ||
@@ -202,0 +204,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2567436
27306