layerchart 1.0.5 → 1.0.6

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.
@@ -421,7 +421,8 @@
421
421
  hideTooltip();
422
422
  }}
423
423
  on:click={(e) => {
424
- if (triggerPointerEvents) {
424
+ // Ignore clicks without data (triggered from Legend clicks, for example)
425
+ if (triggerPointerEvents && $tooltip?.data != null) {
425
426
  onclick(e, { data: $tooltip?.data });
426
427
  }
427
428
  }}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "1.0.5",
7
+ "version": "1.0.6",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.28.1",
10
10
  "@mdi/js": "^7.4.47",