Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission denied when component close the window on IE #77

Open
martinl16 opened this issue Mar 18, 2021 · 1 comment
Open

Permission denied when component close the window on IE #77

martinl16 opened this issue Mar 18, 2021 · 1 comment
Assignees

Comments

@martinl16
Copy link

martinl16 commented Mar 18, 2021

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?

@rmariuzzo rmariuzzo self-assigned this Nov 27, 2022
@rmariuzzo
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants