@syncfusion/ej2-splitbuttons 19.3.45 → 19.3.47
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 +1 -1
- package/dist/ej2-splitbuttons.umd.min.js +2 -2
- package/dist/ej2-splitbuttons.umd.min.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es2015.js +12 -2
- package/dist/es6/ej2-splitbuttons.es2015.js.map +1 -1
- package/dist/es6/ej2-splitbuttons.es5.js +12 -2
- package/dist/es6/ej2-splitbuttons.es5.js.map +1 -1
- package/dist/global/ej2-splitbuttons.min.js +2 -2
- package/dist/global/ej2-splitbuttons.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +7 -7
- package/src/drop-down-button/drop-down-button.d.ts +1 -0
- package/src/drop-down-button/drop-down-button.js +12 -2
|
@@ -425,13 +425,23 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
425
425
|
}
|
|
426
426
|
this.appendArrowSpan();
|
|
427
427
|
this.setActiveElem([this.element]);
|
|
428
|
-
if (this.target || !this.createPopupOnClick) {
|
|
428
|
+
if ((this.target && !this.isColorPicker()) || !this.createPopupOnClick) {
|
|
429
429
|
this.createPopup();
|
|
430
430
|
}
|
|
431
431
|
else {
|
|
432
432
|
this.isPopupCreated = false;
|
|
433
433
|
}
|
|
434
434
|
};
|
|
435
|
+
DropDownButton.prototype.isColorPicker = function () {
|
|
436
|
+
if (!this.element) {
|
|
437
|
+
return false;
|
|
438
|
+
}
|
|
439
|
+
var prevElem = this.element.previousSibling;
|
|
440
|
+
if (prevElem && prevElem.classList && prevElem.classList.contains('e-split-colorpicker')) {
|
|
441
|
+
return true;
|
|
442
|
+
}
|
|
443
|
+
return false;
|
|
444
|
+
};
|
|
435
445
|
DropDownButton.prototype.appendArrowSpan = function () {
|
|
436
446
|
this.element.appendChild(this.createElement('span', {
|
|
437
447
|
className: 'e-btn-icon e-icons ' + 'e-icon-' + (this.cssClass.indexOf(classNames.VERTICAL) > -1
|
|
@@ -620,7 +630,7 @@ var DropDownButton = /** @__PURE__ @class */ (function (_super) {
|
|
|
620
630
|
DropDownButton.prototype.clickHandler = function (e) {
|
|
621
631
|
var trgt = e.target;
|
|
622
632
|
if (closest(trgt, '[id="' + this.element.id + '"]')) {
|
|
623
|
-
if (!this.createPopupOnClick || this.target) {
|
|
633
|
+
if (!this.createPopupOnClick || (this.target && !this.isColorPicker())) {
|
|
624
634
|
if (this.getPopUpElement().classList.contains('e-popup-close')) {
|
|
625
635
|
this.openPopUp(e);
|
|
626
636
|
}
|