Feature: #React Portal contents can be printed using window.print()
Scenario: React.Portal is a new browser window
Given Portal contents contains a print button.When window print is called in a component within the portal.Then it prints the opener window. 🤦♂️
Swap window.print with () => externalWindow.print() when external window gets focus.
Then revert when the main window gets focus.
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!