I have this code snippet that I am currently using
<v-list-item>
<v-btn
@click="onDownloadFile(document)"
:disabled=getFileExtention
>Download as pdf</v-btn
>
</v-list-item>
where the getFileExtention function returns a boolean value
getFileExtention() {
//console.log(this.document.extension==="pdf");
return this.document.extension === "pdf";
}
However, I am facing an issue as it is not functioning properly. The error message says: [Vue warn]: Invalid prop: type check failed for prop "disabled". Expected Boolean, got Function . Can someone please assist me with this?