@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.
@@ -1753,7 +1753,7 @@ let ProgressButton = class ProgressButton extends Button {
1753
1753
  this.step = args.step;
1754
1754
  if ((progressTime - prevProgressTime) % (this.duration * args.step / 100) === 0 || percent === 100) {
1755
1755
  this.timerId = requestAnimationFrame(() => {
1756
- if (this.enableProgress) {
1756
+ if (this.enableProgress && this.getProgress()) {
1757
1757
  this.getProgress().style[isVertical ? 'height' : 'width'] = percent + '%';
1758
1758
  }
1759
1759
  this.element.setAttribute('aria-valuenow', percent.toString());
@@ -1770,7 +1770,7 @@ let ProgressButton = class ProgressButton extends Button {
1770
1770
  else {
1771
1771
  this.interval = window.setTimeout(() => {
1772
1772
  this.progressTime = this.percent = 0;
1773
- if (this.enableProgress) {
1773
+ if (this.enableProgress && this.getProgress()) {
1774
1774
  this.getProgress().style[isVertical ? 'height' : 'width'] = '0%';
1775
1775
  }
1776
1776
  this.element.setAttribute('aria-valuenow', '0');
@@ -1810,7 +1810,7 @@ let ProgressButton = class ProgressButton extends Button {
1810
1810
  if (i > 100) {
1811
1811
  i = 100;
1812
1812
  }
1813
- if (this.enableProgress) {
1813
+ if (this.enableProgress && this.getProgress()) {
1814
1814
  this.getProgress().style[isVertical ? 'height' : 'width'] = (this.percent < 100) ? (i + '%') : '100%';
1815
1815
  }
1816
1816
  }