I'm trying to enable/disable dropdown:combination selection when my box is checked. It works fine when I Add Name but when Clientless is selected, it doesn't work in Edit Name work.
The dropdown should be disabled because "Clientless" is selected, and should only be enabled if I uncheck the box. However, when the box is checked, the dropdown menu is enabled, and when I uncheck the box, the dropdown menu is disabled.
data: { editSelect: true, }, methods: { noClient() { this.editSelect = !this.editSelect; },
Please help me understand what is wrong with my code. Also, if you have any suggestions on how I should code this problem differently, please let me know!
You can set
v-model
on the checkbox and use that value to disable the dropdown.