@syncfusion/ej2-splitbuttons 20.4.48 → 20.4.50

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 20.4.48
3
+ * version : 20.4.50
4
4
  * Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "_from": "@syncfusion/ej2-splitbuttons@*",
3
- "_id": "@syncfusion/ej2-splitbuttons@20.4.42",
3
+ "_id": "@syncfusion/ej2-splitbuttons@20.4.48",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-oVn5FSfO1zoUIYocq8IBiPYzpKsf0RA/8p2VTEoB/P3EF6d5Ks8+7M0/nd6W50x4Dj+pQSI5GA+uB9KqJrG3mg==",
5
+ "_integrity": "sha512-GopDCpguhkscBfgaDrL1tsxlbNFwQHWZwzosBeswNc8AIW7aj1KNBIV2XwAWpvoDYrzD/canCrO6acmth0yv5Q==",
6
6
  "_location": "/@syncfusion/ej2-splitbuttons",
7
7
  "_phantomChildren": {},
8
8
  "_requested": {
@@ -32,8 +32,8 @@
32
32
  "/@syncfusion/ej2-richtexteditor",
33
33
  "/@syncfusion/ej2-vue-splitbuttons"
34
34
  ],
35
- "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-20.4.42.tgz",
36
- "_shasum": "6de2d5e456449e999defd3348fcf19f003f47512",
35
+ "_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-splitbuttons/-/ej2-splitbuttons-20.4.48.tgz",
36
+ "_shasum": "a5a613d2a38d84e5ab555f50c7404a07ec8d7336",
37
37
  "_spec": "@syncfusion/ej2-splitbuttons@*",
38
38
  "_where": "/jenkins/workspace/ease-automation_release_19.1.0.1/packages/included",
39
39
  "author": {
@@ -45,7 +45,7 @@
45
45
  "bundleDependencies": false,
46
46
  "dependencies": {
47
47
  "@syncfusion/ej2-base": "~20.4.48",
48
- "@syncfusion/ej2-popups": "~20.4.48"
48
+ "@syncfusion/ej2-popups": "~20.4.49"
49
49
  },
50
50
  "deprecated": false,
51
51
  "description": "A package of feature-rich Essential JS 2 components such as DropDownButton, SplitButton, ProgressButton and ButtonGroup.",
@@ -88,6 +88,6 @@
88
88
  "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
89
89
  },
90
90
  "typings": "index.d.ts",
91
- "version": "20.4.48",
91
+ "version": "20.4.50",
92
92
  "sideEffects": false
93
93
  }
@@ -674,12 +674,13 @@ var DropDownButton = /** @class */ (function (_super) {
674
674
  }
675
675
  break;
676
676
  case 'cssClass':
677
- if (newProp.cssClass.indexOf(classNames.VERTICAL) > -1) {
677
+ if (newProp.cssClass.indexOf(classNames.VERTICAL) > -1 || oldProp.cssClass.indexOf(classNames.VERTICAL) > -1) {
678
678
  if (!this.element.querySelector('span.e-caret')) {
679
679
  this.appendArrowSpan();
680
680
  }
681
681
  var arrowSpan = this.element.querySelector('span.e-caret');
682
- classList(arrowSpan, ['e-icon-bottom'], ['e-icon-right']);
682
+ newProp.cssClass.indexOf(classNames.VERTICAL) > -1 ? classList(arrowSpan, ['e-icon-bottom'], ['e-icon-right'])
683
+ : classList(arrowSpan, ['e-icon-right'], ['e-icon-bottom']);
683
684
  }
684
685
  if (this.isPopupCreated) {
685
686
  if (oldProp.cssClass) {
@@ -183,6 +183,10 @@ var SplitButton = /** @class */ (function (_super) {
183
183
  _this.trigger('select', args);
184
184
  };
185
185
  dropDownBtnModel.beforeOpen = function (args) {
186
+ if (_this.createPopupOnClick && _this.items.length == 0) {
187
+ _this.secondaryBtnObj.dropDown.relateTo = _this.wrapper;
188
+ _this.dropDown = _this.secondaryBtnObj.dropDown;
189
+ }
186
190
  var callBackPromise = new Deferred();
187
191
  _this.trigger('beforeOpen', args, function (observedArgs) {
188
192
  callBackPromise.resolve(observedArgs);