Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The hasDownloaded function not working #138

Open
maronkoders opened this issue Jul 11, 2022 · 1 comment
Open

The hasDownloaded function not working #138

maronkoders opened this issue Jul 11, 2022 · 1 comment
Assignees

Comments

@maronkoders
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants