jquery-modal icon indicating copy to clipboard operation
jquery-modal copied to clipboard

Bug - Bootstrap Dropdown reseting jquery-modal

Open jimossi opened this issue 7 years ago • 2 comments
trafficstars

I've created a jquery modal form on which I've included a Bootstrap Dropdown.

For some reason, every time the Dropdown is clicked on, the modal form will reset, and by this I mean it will trigger an '_onshow()' function which is designed to trigger every time the form is shown. Simply clicking or tapping on the Dropdown will cause the modal form to be 'shown' again, even though it hasn't been hidden or closed.

You can see it in action here:

https://jimos.si/test/

Thanks.

jimossi avatar Apr 13 '18 14:04 jimossi

Is there any way you can simplify this test case? There's a whole bunch of other scripts that makes it difficult to understand what's actually happening here. It would be much easier to troubleshoot if you could only use jQuery Modal + Bootstrap, and include exactly the code you're using to work with the modal.

It's possible there's just a general conflict happening with Bootstrap here ☹️This modal often doesn't play nicely with Bootstrap because of the naming conflict (not just with $modal, but events, etc).

kylefox avatar Apr 13 '18 16:04 kylefox

I use an IDE called AppStudio from NSBasic to create my web apps, and I'm afraid I don't know how to create any pages without it. What I can tell you is that all I've done is open a modal form with a BS Dropdown on it and that's it!

The '_onshow()' function is there only to indicate/show that the modal form is being re-opened each time the Dropdown is clicked on.

I first checked with the AppStudio authors who have confirmed that their IDE is doing nothing other than placing the Dropdown on the modal form, so it's not their app that's causing the issue.

I've also discovered that exactly the same thing happens with the BS Hamburger.

Would you be able to recreate the issue yourself, maybe?

Thanks.

jimossi avatar Apr 14 '18 23:04 jimossi