rpdasilva / print-html-element

Prints the HTML of a provided element.
MIT License
24 stars 10 forks source link

iframe printMode does not work in firefox #9

Closed JMLX42 closed 8 years ago

JMLX42 commented 8 years ago

Tested in Firefox 45.0.1.

PrintHTMLElement.printElement(document.getElementById('my-id'));

No print dialog, no error. No nothing. This works though:

PrintHTMLElement.printElement(
        document.getElementById('my-id'),
        { printMode: 'popup' }
);

I'm using React. But it works perfectly in Chrome so I'm guessing that's not the issue.

Any idea of how to fix this? Thanks!

rpdasilva commented 8 years ago

I'll have to look further into this, but this is confirmed as a bug.

rpdasilva commented 8 years ago

@promethe42 See if this branch fixes your issue https://github.com/rpdasilva/print-html-element/tree/fix/iss9