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

onclick events in window don't work #10

Open
pavelustenko opened this issue Apr 23, 2021 · 0 comments
Open

onclick events in window don't work #10

pavelustenko opened this issue Apr 23, 2021 · 0 comments

Comments

@pavelustenko
Copy link

Code to reproduce issue:
`import React from "react";
import WindowModal from "react-window-modal";
export default class App extends React.Component {

render() {
return (
    <div className="App">
        <WindowModal>
            <button onClick={()=>console.log('1 clicked')} type='button'>1</button>
        </WindowModal>
        <button onClick={()=>console.log('2 clicked')} type='button'>2</button>
    </div>
);

}
}
`
button 2 does console log, but button 1 doesn't.

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

1 participant