vue-pdf-app
vue-pdf-app copied to clipboard
Adding Id-Config overrides Config functionality
:id-config and :config don't play well together. If I have just :config the buttons are removed from the toolbarRight but when I add :id-config the buttons reappear.
Configuration:
- Web browser and it`s version: Chrome
- Operating system and it`s version: Win 10
- vue-pdf-app version: 2.1.0
Steps to reproduce the problem:
<vue-pdf-app :id-config="pdfIdConfig" :config="pdfConfig" :pdf="pdfDocument" style="height: 75vh;"></vue-pdf-app>
<BButton variant="primary" :id="pdfIdConfig.print">Print</BButton>
data() {
return {
pdfIdConfig: {
print: "printId",
},
pdfConfig: {
toolbar: {
toolbarViewerRight: {
openFile: false,
viewBookmark: false
}
}
},
};
}
What is the expected behavior?
In my example bookmark and file open on toolbar would be hidden and print button would work
What went wrong?
toolbar buttons are not hidden
Attachments (screenshots, links, etc)
Hi! Yes, I confirm a bug