0👍
Use a watcher on your model value.
Using vue3 syntax
const invoiceInfo = reactive(
{
reasonForPartialAmount:'',
partialAmount: '',
isMakingPartialPayment: false,
})
watch(() => invoiceInfo.isMakingPartialPayment, value => {
if (!value) {
invoiceInfo.reasonForPartialAmount = ''
invoiceInfo.partialAmount = ''
}
})
- [Vuejs]-How can I make columns and rows equal size and length on Vue?
- [Vuejs]-Vue File Agent from CDN on ASP.NET MVC
Source:stackexchange.com