react-new-window icon indicating copy to clipboard operation
react-new-window copied to clipboard

Permission denied when component close the window on IE

Open martinl16 opened this issue 4 years ago • 1 comments

Hi

when the variable showWindow changed for false, i return null so the window should get closed. It works well on chrome but on IE it gives me an error 'Permission Denied'

const renderWindow = () => {
        if (!showWindow) return;
        return <NewWindow onUnload={() => {setShowWindow(false)} }>
            <h1>test</h1>
        </NewWindow>
    }

any idea how to fix it?

martinl16 avatar Mar 18 '21 14:03 martinl16

Hi there! I'm really sorry for the long reply. Which version of IE are you using? I would love to reproduce it.

rmariuzzo avatar Nov 27 '22 04:11 rmariuzzo