You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the print component sets innerHTML directly before triggering a print, which can be dangerous in React since we're taking control away from it. This might also be why the print page doesn't have the styles of the rest of the app. We might be able to improve this by using CSS to hint to the browser not to print certain parts of the page (like the sidebar and header), which would allow us to print the body of the page which styles!
Currently, the print component sets
innerHTML
directly before triggering a print, which can be dangerous in React since we're taking control away from it. This might also be why the print page doesn't have the styles of the rest of the app. We might be able to improve this by using CSS to hint to the browser not to print certain parts of the page (like the sidebar and header), which would allow us to print the body of the page which styles!https://github.com/codeforboston/windfall-elimination/blob/develop/src/pages/print.tsx#L221
The text was updated successfully, but these errors were encountered: