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

[BUG] QToggle does not updated input status checked if it has no name #11702

Closed
sschneider-ihre-pvs opened this issue Dec 16, 2021 · 2 comments
Closed
Labels
Qv2 🔝 Quasar v2 issues

Comments

@sschneider-ihre-pvs
Copy link
Contributor

Describe the bug
The checkbox of QToggle does not update the checked state if QToggle does not have a name attribute.

Codepen/jsFiddle/Codesandbox (required or your issue may be closed)
https://jsfiddle.net/hz0xe9sw/

To Reproduce
Steps to reproduce the behavior:

  1. Click the first toggle twice
  2. Check console // [false, false]
  3. Click the second toggle
  4. Check console // [true, false] <- maybe also a bug

Expected behavior
The checked status should always be the same whether the input has a name or not.

@sschneider-ihre-pvs sschneider-ihre-pvs added the Qv2 🔝 Quasar v2 issues label Dec 16, 2021
@smolinari
Copy link
Collaborator

@sschneider-ihre-pvs - I believe that is standard procedure. See here: https://quasar.dev/vue-components/toggle#native-form-submit

Scott

@pdanpdan
Copy link
Collaborator

Hello. This is by design. And for the checked attr not being set when name is present there is already a commit for the next release.

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

No branches or pull requests

3 participants