-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Modal & Collapsible 'Close' conflicting #3736
Comments
Can u provide a jsfiddle? |
I think I've narrowed down the problem to this... I have a class being applied to a parent container on expand and on hidden for the collapsible. The code is as follows: $('.item-details').on('show', function () { I have a feeling that because the modal is nested withing the collapsible div (.item-details). The functions being triggered on 'show' and 'hidden' for the modal are interfering with the on 'show' and 'hidden' for the collapsible. This is proven by the fact the the modal is displayed when I expend the collapsible, and the added class is being removed from the parent div when I close the modal. Is there a way to explicitly call the on 'show' or 'hidden' for just the collapsible without interfering with the modal's on 'show' or 'hidden'? |
@fat This problem started to be really very problematic.
Plugin owners are using same convention. Bootstrap datepicker had same issue. To solve this problem one must be use if else statements with That is to say, more and more people will make same mistakes because of this convention. My proposed solution is changing the event names to reflect the owner of the plugin as |
please reopen with a jsfiddle. thanks |
Have you added a patch related to this issue? |
I have a modal nested within a collapsible div, and closing the modal after launching it is causing the collapsible to close as well. Has anyone come across this or found a solution?
The text was updated successfully, but these errors were encountered: