Skip to content

Commit 729aa6e

Browse files
committed
Merge branch 'next' of https://github.com/techniq/layerchart into next
2 parents 992b25e + 4fd8d40 commit 729aa6e

5 files changed

Lines changed: 14 additions & 1 deletion

File tree

.changeset/all-papers-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'layerchart': patch
3+
---
4+
5+
fix: Prevent submitting forms when clicking legend buttons

.changeset/pre.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"add-trail-component",
2222
"add-violin-component",
2323
"afraid-jobs-say",
24+
"all-papers-unite",
2425
"annotation-line-sloped",
2526
"annotation-point-link-callouts",
2627
"arclabel-component",

packages/layerchart/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# LayerChart
22

3+
## 2.0.0-next.59
4+
5+
### Patch Changes
6+
7+
- fix: Prevent submitting forms when clicking legend buttons ([#841](https://github.com/techniq/layerchart/pull/841))
8+
39
## 2.0.0-next.58
410

511
### Major Changes

packages/layerchart/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"license": "MIT",
66
"repository": "techniq/layerchart",
77
"homepage": "https://layerchart.com",
8-
"version": "2.0.0-next.58",
8+
"version": "2.0.0-next.59",
99
"scripts": {
1010
"dev": "pnpm package:watch",
1111
"package": "svelte-package",

packages/layerchart/src/lib/components/Legend.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@
498498
<div class={cls('lc-legend-swatch-group', classes.items)} data-orientation={orientation}>
499499
{#each swatchItems as item}
500500
<button
501+
type="button"
501502
class={cls('lc-legend-swatch-button', resolveMaybeFn(classes?.item, item))}
502503
style:opacity={selected.length === 0 || selected.includes(item.value) ? 1 : 0.3}
503504
onclick={(e) => onclickProp?.(e, item) ?? item.onclick?.(e)}

0 commit comments

Comments
 (0)