kempsteven / vue-html2pdf

vue-html2pdf converts any vue component or element into PDF, vue-html2pdf is basically a vue wrapper only and uses html2pdf.js behind the scenes.
https://www.npmjs.com/package/vue-html2pdf
MIT License
432 stars 75 forks source link

The hasDownloaded function not working #138

Open maronkoders opened 2 years ago

maronkoders commented 2 years ago

Describe the bug

When i call the hasDownloaded function i'm getting this error invoiceGenerator.js:49660 [Vue tip]: Event "hasdownloaded" is emitted in component <VueHtml2pdf> but the handler is registered for "hasDownloaded". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "has-downloaded" instead of "hasDownloaded". in the console

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots If applicable, add screenshots to help explain your problem.

Package Version e.g. 1.8.0

Additional context Add any other context about the problem here.

MartinX3 commented 1 year ago

@hasDownloaded only triggers if :enable-download="true" And then I get the pdf twice. One time with pagination and the second time without.