MatthewHerbst / react-to-print

Print React components in the browser. Supports Chrome, Safari, Firefox and EDGE
MIT License
2.12k stars 221 forks source link

Gray overlay on pdf after printing #750

Open rahulschandak opened 1 week ago

rahulschandak commented 1 week ago

I am facing an issue where there is a gray overlay after I execute this function after using onClick on a button. My app was working perfectly fine, this issue started to come from last few days!

const handlePrint = useReactToPrint({
    content: () => componentRef.current,
    documentTitle: "CoverLetter_".concat(companyName),
    onAfterPrint: () => console.log("Printed PDF successfully!"),
  });
MatthewHerbst commented 1 week ago

Hello. If you haven't upgraded react-to-print in the last few days I doubt it's an issue with this library. Are you able to share a reproducible example that we can look at?