-
Notifications
You must be signed in to change notification settings - Fork 87
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
Rodal doesn't close #25
Comments
@nikkiczx Can you provide a minimal demo of the problem via https://jsfiddle.net or similar? |
I can try. But how do I add Rodal to jsfiddle? |
Here is a demo in codesandbox. |
Ok.. Can you try this and see if it works? https://codesandbox.io/s/mwNp69xK9 |
@nikkiczx Can't find any changes, did you save your code? |
Yikes.. Sorry. Just saved it. |
@nikkiczx You should put the rodal outside the button. If you put the rodal inside the button, the click event of button will be triggered when you click rodal. <button onClick={this.editEvent.bind(this, event._id)} className="fa fa-pencil-square-o fa-lg zero-padding" style={{color: 'green', top: '15px'}}>Test</button>
<Rodal visible={this.state.visible} animation="flip" onClose={this.hide.bind(this)}>
Test
</Rodal> |
OMG.. Thank you! I don't know why I did it that way to begin with facepalm |
The rodal doesn't no matter what I do. Even if I do click on the close button. A portion of my code is below. I've checked that when I click the close button, the state changes from true to false but the rodal doesn't close. How do I make it close?
Please help. Thanks!
The text was updated successfully, but these errors were encountered: