q-toggle @update not working
See original GitHub issueWhat happened?
Having this doc: https://quasar.dev/vue-components/toggle
The q-toggle is not working as expected. the event @update is not triggered. https://jsfiddle.net/3dr6n0qv/
What did you expect to happen?
working @update
event
Reproduction URL
https://jsfiddle.net/3dr6n0qv/
How to reproduce?
Click toggle
Flavour
Quasar CLI (@quasar/cli | @quasar/app)
Areas
Components (quasar)
Platforms/Browsers
Other
Quasar info output
No response
Relevant log output
No response
Additional context
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
QToggle "on change" event | Quasar Framework Community
When one toggle change his value i want to call a method that will update that record/status on the database. What toogle event...
Read more >Sidebar toggle button doesn't work after update - Stack Overflow
After updating packages to the newest versions, sidebar toggle button has disappeared. It's not displayed properly (there should be 3 ...
Read more >Toggle - Quasar Framework
The QToggle component is a basic element for user input. You can use it for turning settings, features or true/false inputs on and...
Read more >Big Time Problems with Rane One Manual / Toggle Effects ...
none of the toggles are working on Manual effects anymore!! and the time jumps from 2 to 1/8 , big midi problems, please...
Read more >Solved: Patching inside gallery with toggle control update...
I even tried with a dropdown or other controls to check if the problem were the gallery or the control itself, but it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Comparing the code against f7 or even ionic I can see the Quasar is more mature and focused on vue only 👍. Thanks.
There is no such event with that name. The correct event name is
@update:model-value
, also seen from the code snippet above. So in your CodePen you should use@update:model-value="onUpdate"
.