rmariuzzo / react-new-window

🔲 Pop new windows in React, using `window.open`.

Home Page:https://rmariuzzo.github.io/react-new-window/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Permission denied when component close the window on IE

martinl16 opened this issue · 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?

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