Skip to content
Advertisement

Vue.js disabled button with condition doesn’t work

I have a data-table in Vue.js component using Vuetify with a input inside a row, and I need to disable a button if the input v-model="row.item.quantidade" was empty. but doesn’t work.

HTML

JavaScript

Javascript method in vue.js component

JavaScript

Advertisement

Answer

The function :

JavaScript

should be a computed property and it must be used without () like :

JavaScript
Advertisement