Open Shooshte opened 7 years ago
This is my component:
import React, {Component} from 'react' import PopoutWindow from 'react-popout' class Help extends Component { render() { return ( <PopoutWindow onClosing={this.props.closeHelpWindow} options={{width: '500px', height: '500px'}} ref={el => this._popup = el} > <div> // Other HTML content <div onClick={console.log('click')}>CLICK</div> <button onClick={() => { console.log('CLICK') this.props.closeHelpWindow this._popup.closeWindow }}> Ok </button> </div> </PopoutWindow> ) } } export default Help
When I click the DIV or the button, nothing gets logged to the console (i used inspect on the popup window).
This is my component:
When I click the DIV or the button, nothing gets logged to the console (i used inspect on the popup window).