chartjs-test-utils 0.3.0 → 0.3.1

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,5 +1,5 @@
1
1
  /*!
2
- * chartjs-test-utils v0.3.0
2
+ * chartjs-test-utils v0.3.1
3
3
  * https://github.com/chartjs/chartjs-test-utils#readme
4
4
  * (c) 2021 chartjs-plugin-annotation Contributors
5
5
  * Released under the MIT License
@@ -648,7 +648,7 @@ function afterEvent(chart, type, callback) {
648
648
  var override = chart._eventHandler;
649
649
  chart._eventHandler = function(event) {
650
650
  override.call(this, event);
651
- if (event.type === type) {
651
+ if (event.type === type || (event.native && event.native.type === type)) {
652
652
  chart._eventHandler = override;
653
653
  // eslint-disable-next-line callback-return
654
654
  callback();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chartjs-test-utils",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Chart.js test utils",
5
5
  "main": "dist/chartjs-test-utils.js",
6
6
  "module": "dist/chartjs-test-utils.js",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "homepage": "https://github.com/chartjs/chartjs-test-utils#readme",
32
32
  "devDependencies": {
33
- "@rollup/plugin-commonjs": "^19.0.0",
33
+ "@rollup/plugin-commonjs": "^20.0.0",
34
34
  "@rollup/plugin-node-resolve": "^13.0.0",
35
35
  "eslint": "^7.20.0",
36
36
  "eslint-config-chartjs": "^0.3.0",