Skip to content
Advertisement

Checking checkbox A, triggers checkbox A & B. But checking checkbox B should only trigger checkbox B in Vuetify

I have two checkboxes in Vuetify. I’m trying to write them in a way that if I check checkbox A, it automatically checks both checkbox A & B. But clicking on checkbox B triggers only checkbox B. What’s the best way to do it? Here is my code:

JavaScript

Advertisement

Answer

There are few solutions to handle it.

  1. You can use Vue watch
JavaScript
  1. Using @change event on v-checkbox
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement