-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
conditional modal footer closes modal #126
Comments
Thanks for reporting this issue and providing an example. It should work. I can see it's not. I'll need some time to dig into this or if anyone wants to look into this feel free to comment on here. |
Figured it out... (took longer to figure out how to edit the webpackbin (my browser window was too small (less than 1280px wide) and I didn't realize the prevented me from editing and doing things...) A possible fix would be to set For now, a workaround would be to use styles to hide and show the remove button instead of adding it and removing it from the DOM or maybe even stopping the event (having your handler call |
Fixes reactstrap#126 Change the event listeners for click and keyup in modal to set `useCapture` to true to trigger the handler before any other handler.
Fixes reactstrap#126 Change the event listeners for click and keyup in modal to set `useCapture` to true to trigger the handler before any other handler.
Looks like it fixes the issue, tested locally. A PR is up for review. |
Fixes #126 Change the event listeners for click and keyup in modal to set `useCapture` to true to trigger the handler before any other handler.
Fix published in 3.0.1 |
awesome! thanks @TheSharpieOne Your fix and thorough response actually made me lookup more info on event bubbling and capturing. |
Is there a way to conditionally display/toggle the modal footer without causing the modal to close?
My use case establishes the modal footer as conditional when there are files selected i.e I display buttons to remove files. I'm running into the issue that while I can make the modal footer conditionally appear, the case in which the footer should disappear causes the entire modal to close.
Take a look at the following bin sample, toggle the modal and add a file. When you remove files the entire modal closes.
http://www.webpackbin.com/NkyVH5_jb
The text was updated successfully, but these errors were encountered: