Skip to content

Commit b44d619

Browse files
committed
remove old ticks when the new create
1 parent 328ca6a commit b44d619

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/devextreme/js/__internal/viz/axes/base_axis.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1629,6 +1629,13 @@ Axis.prototype = {
16291629
const renderer = that._renderer;
16301630
const options = that._options;
16311631

1632+
if (Array.isArray(this._majorTicks)) {
1633+
this._majorTicks.forEach((tick) => tick.removeLabel && tick.removeLabel());
1634+
}
1635+
if (Array.isArray(this._minorTicks)) {
1636+
this._minorTicks.forEach((tick) => tick.removeLabel && tick.removeLabel());
1637+
}
1638+
16321639
if (!canvas) {
16331640
return;
16341641
}

0 commit comments

Comments
 (0)