Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next: passing type="submit" to checkbox doesn't work #931

Closed
tmarnet opened this issue Nov 15, 2024 · 0 comments
Closed

next: passing type="submit" to checkbox doesn't work #931

tmarnet opened this issue Nov 15, 2024 · 0 comments

Comments

@tmarnet
Copy link
Contributor

tmarnet commented Nov 15, 2024

Describe the bug

I'm using a checkbox to submit a form in my project, enabled by passing type="submit" to Checkbox.Root, but it doesn't work anymore when using the next version of bits-ui

Looking at the implementation of the checkbox component it looks like the type prop is hardcoded and takes precedence over the rest props:

Reproduction

https://stackblitz.com/edit/vitejs-vite-fgbj4c?file=src%2FApp.svelte

Logs

No response

System Info

System:
    OS: macOS 15.0.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 83.23 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    npm: 10.8.0 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 9.4.0 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 130.0.6723.117
    Safari: 18.0.1
  npmPackages:
    @sveltejs/kit: ^2.8.0 => 2.8.0 
    bits-ui: ^1.0.0-next.57 => 1.0.0-next.57 
    svelte: ^5.1.13 => 5.1.13 

Severity

blocking an upgrade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants