-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
close button is missing from modal dialog #217
Comments
It comes down to the fact that the markup is different:
vs
And I think it comes down to this piece of code from jquery.ui.dialog.js:
|
I think this is a name space clash. Both Bootstrap and jQuery UI have a .button() method. Removing BS from the page lets the code in jquery.ui.dialog.js run properly and gives us the correct markup. |
@andrewmallis I don't believe that's the same issue. Some little css tweaks fixed their problem but ours is that the markup is completely different—and it's the .button() method that is adding the required markup. |
Here are some options: We could use the widget bridge included in jQuery UI as outlined here: http://www.ryadel.com/en/using-jquery-ui-bootstrap-togheter-web-page/ however we have no control over how it's called in Panopoly so I don't think this will work. So I'm leaning towards this:
This will mean that any time we want to use the button method from BS we use .btn() instead. Not great because it doesn't match up with the BS docs but I don't think there's a better way around this. We will have to document it well. We will have to do the same thing for .tooltip() because it is implemented by both libraries too. |
@soniktrooth I'd like if we can keep the issue descriptions more focused on the problem that is exhibited, as this will help users with the same problem identify the the issue. |
I am not excited to break the documented bootstrap pattern in principal. I lack js fluency to propose anything concrete, but perhaps @RobLoach may be of assistance here. I do recall in the vestigial 4.x branch we managed to replace the modals with BS modals straight up. Please see SHA 5644548 Also, please see this issue: https://www.drupal.org/node/2546874 |
I'm not excited about changing the documented BS patterns either but there's not a lot of options for two libraries to co-exist. Ultimately, replacing jQueryUI modals with BS modals would be ideal, and we'd have to look at tooltips too and investigate if there are any other namespace collisions to address. I will look into the radix solution you linked to—if we can fix this with js file ordering for now that would be great as I was hoping to do a 'bring in the goodness from 4.x' sprint at some stage soon. |
The load ordering is sorted by #219 |
i have the same issue on d8, please help me. |
This missing close dialog led me to discover a name space collision for .button() method. Both Bootstrap and jQueryUI implement this method.
The text was updated successfully, but these errors were encountered: