@syncfusion/ej2-splitbuttons 24.2.5 → 24.2.7

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.
@@ -1842,7 +1842,7 @@ var ProgressButton = /** @__PURE__ @class */ (function (_super) {
1842
1842
  this.step = args.step;
1843
1843
  if ((progressTime - prevProgressTime) % (this.duration * args.step / 100) === 0 || percent === 100) {
1844
1844
  this.timerId = requestAnimationFrame(function () {
1845
- if (_this.enableProgress) {
1845
+ if (_this.enableProgress && _this.getProgress()) {
1846
1846
  _this.getProgress().style[isVertical ? 'height' : 'width'] = percent + '%';
1847
1847
  }
1848
1848
  _this.element.setAttribute('aria-valuenow', percent.toString());
@@ -1859,7 +1859,7 @@ var ProgressButton = /** @__PURE__ @class */ (function (_super) {
1859
1859
  else {
1860
1860
  this.interval = window.setTimeout(function () {
1861
1861
  _this.progressTime = _this.percent = 0;
1862
- if (_this.enableProgress) {
1862
+ if (_this.enableProgress && _this.getProgress()) {
1863
1863
  _this.getProgress().style[isVertical ? 'height' : 'width'] = '0%';
1864
1864
  }
1865
1865
  _this.element.setAttribute('aria-valuenow', '0');
@@ -1900,7 +1900,7 @@ var ProgressButton = /** @__PURE__ @class */ (function (_super) {
1900
1900
  if (i > 100) {
1901
1901
  i = 100;
1902
1902
  }
1903
- if (this.enableProgress) {
1903
+ if (this.enableProgress && this.getProgress()) {
1904
1904
  this.getProgress().style[isVertical ? 'height' : 'width'] = (this.percent < 100) ? (i + '%') : '100%';
1905
1905
  }
1906
1906
  }