You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am testing around with ReactJS and using Material-Ui. For a small Test Component I am using Dialog. I am using like the same code as in your example but this seems not to work. Maybe there is a bug or the docs were not clear enough for me.
Here is the Code
const{Dialog, FlatButton}=MUI;Home=React.createClass({getInitialState(){return{welcomeModal: false};},openWelcomeDialog(){this.setState({welcomeModal:true});},closeWelcomeDialog(buttonClicked){console.log('Close The Welcome Dialog.');this.setState({welcomeModal:false});},render(){letmodalActions=[{text: 'Cancel'}];return(<div><h1>Welcome to my app</h1><ahref="#"onClick={this.openWelcomeDialog}>Open the Welcome Modal</a><Dialogtitle="Welcome Modal"actions={modalActions}autoDetectWindowHeight={true}autoScrollBodyContent={true}open={this.state.welcomeModal}onRequestClose={this.closeWelcomeDialog}><divstyle={{height: '1000px'}}>
Really long content
</div></Dialog></div>);}});
What happens:
When I click on the link the event will be fired and the modal is opening in the right way. But: It does not matter on what I am clicking if in the background or on the Cancel-Button: The Modal will not be closed and also the console.log will not be fired ... so: The method will not be called! In my example its impossible to close the modal.
The text was updated successfully, but these errors were encountered:
I have the same issue, and I'm using injectTapEventPlugin(). And everything else related to events seems to be working. Should I check for something else?
The problem is pretty much the same as in the opening topic, no matter where I click - it does not fired.
I am testing around with ReactJS and using Material-Ui. For a small Test Component I am using Dialog. I am using like the same code as in your example but this seems not to work. Maybe there is a bug or the docs were not clear enough for me.
Here is the Code
What happens:
When I click on the link the event will be fired and the modal is opening in the right way. But: It does not matter on what I am clicking if in the background or on the Cancel-Button: The Modal will not be closed and also the console.log will not be fired ... so: The method will not be called! In my example its impossible to close the modal.
The text was updated successfully, but these errors were encountered: