bits-ui 2.9.0 → 2.9.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.
@@ -146,6 +146,10 @@ export class CheckboxRootState {
146
146
  onclick(e) {
147
147
  if (this.trueDisabled || this.trueReadonly)
148
148
  return;
149
+ if (this.opts.type.current === "submit") {
150
+ this.#toggle();
151
+ return;
152
+ }
149
153
  e.preventDefault();
150
154
  this.#toggle();
151
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bits-ui",
3
- "version": "2.9.0",
3
+ "version": "2.9.1",
4
4
  "license": "MIT",
5
5
  "repository": "github:huntabyte/bits-ui",
6
6
  "funding": "https://github.com/sponsors/huntabyte",