@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/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@19.3.44",
3
+ "_id": "@syncfusion/ej2-splitbuttons@19.3.45",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-MY8IG9t4KUJoHUEbyFPq+0/RT8afcCMWKHTdG1h304ymusEJZRqPCUtBp/iQsmx6d60srbm1TL7xPjOj1XRJ9w==",
5
+ "_integrity": "sha512-Z3Q1DDHHbC/SsJoAtUtsvXlo32ZOBX9WTHME3TllG8mRctCiO9RZ1n4YggH7I6y+eqwEBD/x6v1neqWpg7Ft8Q==",
6
6
  "_location": "/@syncfusion/ej2-splitbuttons",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -31,8 +31,8 @@
31
31
  "/@syncfusion/ej2-richtexteditor",
32
32
  "/@syncfusion/ej2-vue-splitbuttons"
33
33
  ],
34
- "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-19.3.44.tgz",
35
- "_shasum": "f4e67e1a7ef20ba8aca2476d08ac40bf32667c09",
34
+ "_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-19.3.45.tgz",
35
+ "_shasum": "9a444ab3598387de82f877d5685f77698f2a5e56",
36
36
  "_spec": "@syncfusion/ej2-splitbuttons@*",
37
37
  "_where": "/jenkins/workspace/automation_release_19.1.0.1-ZPMUBNQ6AUYH6YGEFBPVYMEQLRRW2SLD4XCZ6GATNZJFYJ3RIAOA/packages/included",
38
38
  "author": {
@@ -43,8 +43,8 @@
43
43
  },
44
44
  "bundleDependencies": false,
45
45
  "dependencies": {
46
- "@syncfusion/ej2-base": "~19.3.43",
47
- "@syncfusion/ej2-popups": "~19.3.43"
46
+ "@syncfusion/ej2-base": "~19.3.47",
47
+ "@syncfusion/ej2-popups": "~19.3.47"
48
48
  },
49
49
  "deprecated": false,
50
50
  "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
@@ -87,6 +87,6 @@
87
87
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
88
88
  },
89
89
  "typings": "index.d.ts",
90
- "version": "19.3.45",
90
+ "version": "19.3.47",
91
91
  "sideEffects": false
92
92
  }
@@ -180,6 +180,7 @@ export declare class DropDownButton extends Component<HTMLButtonElement> impleme
180
180
  private hasIcon;
181
181
  private createAnchor;
182
182
  private initialize;
183
+ private isColorPicker;
183
184
  private appendArrowSpan;
184
185
  protected setActiveElem(elem: HTMLElement[]): void;
185
186
  /**
@@ -262,13 +262,23 @@ var DropDownButton = /** @class */ (function (_super) {
262
262
  }
263
263
  this.appendArrowSpan();
264
264
  this.setActiveElem([this.element]);
265
- if (this.target || !this.createPopupOnClick) {
265
+ if ((this.target && !this.isColorPicker()) || !this.createPopupOnClick) {
266
266
  this.createPopup();
267
267
  }
268
268
  else {
269
269
  this.isPopupCreated = false;
270
270
  }
271
271
  };
272
+ DropDownButton.prototype.isColorPicker = function () {
273
+ if (!this.element) {
274
+ return false;
275
+ }
276
+ var prevElem = this.element.previousSibling;
277
+ if (prevElem && prevElem.classList && prevElem.classList.contains('e-split-colorpicker')) {
278
+ return true;
279
+ }
280
+ return false;
281
+ };
272
282
  DropDownButton.prototype.appendArrowSpan = function () {
273
283
  this.element.appendChild(this.createElement('span', {
274
284
  className: 'e-btn-icon e-icons ' + 'e-icon-' + (this.cssClass.indexOf(classNames.VERTICAL) > -1
@@ -457,7 +467,7 @@ var DropDownButton = /** @class */ (function (_super) {
457
467
  DropDownButton.prototype.clickHandler = function (e) {
458
468
  var trgt = e.target;
459
469
  if (closest(trgt, '[id="' + this.element.id + '"]')) {
460
- if (!this.createPopupOnClick || this.target) {
470
+ if (!this.createPopupOnClick || (this.target && !this.isColorPicker())) {
461
471
  if (this.getPopUpElement().classList.contains('e-popup-close')) {
462
472
  this.openPopUp(e);
463
473
  }