@gitlab/ui 135.1.1 → 135.1.2

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.
@@ -263,8 +263,9 @@ var script = {
263
263
  }
264
264
  },
265
265
  beforeDestroy() {
266
- this.chart.off('mouseout', this.hideAnnotationsTooltip);
267
- this.chart.off('mouseover', this.onChartMouseOver);
266
+ if (!this.chart) return;
267
+ this.chart.off('mouseout', this.onChartDataPointMouseOut);
268
+ this.chart.off('mouseover', this.onChartDataPointMouseOver);
268
269
  },
269
270
  methods: {
270
271
  defaultAnnotationTooltipText(params) {
@@ -148,6 +148,7 @@ var script = {
148
148
  this.setChartSize();
149
149
  },
150
150
  beforeDestroy() {
151
+ if (!this.chart) return;
151
152
  this.chart.off('click', this.handleClick);
152
153
  },
153
154
  methods: {
@@ -270,6 +270,7 @@ var script = {
270
270
  }
271
271
  },
272
272
  beforeDestroy() {
273
+ if (!this.chart) return;
273
274
  this.chart.off('mouseout', this.onChartDataPointMouseOut);
274
275
  this.chart.off('mouseover', this.onChartDataPointMouseOver);
275
276
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "135.1.1",
3
+ "version": "135.1.2",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -135,7 +135,7 @@
135
135
  "@vue/vue2-jest": "29.2.6",
136
136
  "@vue/vue3-jest": "^29.2.6",
137
137
  "@yarnpkg/lockfile": "^1.1.0",
138
- "acorn": "^8.17.0",
138
+ "acorn": "^8.18.0",
139
139
  "acorn-walk": "^8.3.5",
140
140
  "autoprefixer": "10.5.4",
141
141
  "axe-playwright": "^2.2.2",
@@ -295,8 +295,10 @@ export default {
295
295
  },
296
296
  },
297
297
  beforeDestroy() {
298
- this.chart.off('mouseout', this.hideAnnotationsTooltip);
299
- this.chart.off('mouseover', this.onChartMouseOver);
298
+ if (!this.chart) return;
299
+
300
+ this.chart.off('mouseout', this.onChartDataPointMouseOut);
301
+ this.chart.off('mouseover', this.onChartDataPointMouseOver);
300
302
  },
301
303
  methods: {
302
304
  defaultAnnotationTooltipText(params) {
@@ -146,6 +146,8 @@ export default {
146
146
  this.setChartSize();
147
147
  },
148
148
  beforeDestroy() {
149
+ if (!this.chart) return;
150
+
149
151
  this.chart.off('click', this.handleClick);
150
152
  },
151
153
  methods: {
@@ -299,6 +299,8 @@ export default {
299
299
  },
300
300
  },
301
301
  beforeDestroy() {
302
+ if (!this.chart) return;
303
+
302
304
  this.chart.off('mouseout', this.onChartDataPointMouseOut);
303
305
  this.chart.off('mouseover', this.onChartDataPointMouseOver);
304
306
  },