-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Add add-to-body option for dropdown #1030
Comments
@hall5714 your'e on a closing spree today, is it worth submitting another patch for this? I can see how it's useful in cases where designs are sort of constrained, so it might solve a real UX problem for some users. |
@caitp I'd say this is worth while. Any time we have a absolutely positioned element in a |
Hmm, I agree that it might be worth having, but I'm not actually seeing how the infrastructure would work. TWBS doesn't seem to offer anything like this (from a quick glance at the dropdown module), and it seems like it would require removing a child element and re-adding it to What if we had like a I dunno, it seems much more convoluted in this case. But it might enable more elegant definitions of dropdowns, and also support that use-case. And also break the existing API :D I'm not sure, throw ideas at me. In any case, I'm not sure that this can be done in a small 3-line-patch sort of way :\ |
The $modal service takes the parameters templateUrl and template. If you have a list of 30 items and they each have a dropdown menu with roughly the same stuff, it would be good if you could supply a template instead of creating redundant DOM elements. |
Issue also exists when you have the dropdown in a container that has overflow set. |
I'd be nice to have this |
Yes I'd like to have this feature!!! |
+1 Any recent updates on this? This is a really useful feature when you combine modals and stuff with position relative (bootstrap grid) |
+1 |
Gotta say, I just ran into this issue today and I'm glad we have an issue open for it. +1 |
+1 After the last bootstrap update, this became really necessary when using dropdown in tables... |
+1 This issue is actually biting me pretty hard. Would really love for some sort of append-to-body equivalent on this. |
Would be really handy to have, has saved me a number of times with tooltips and popovers so I was expecting this for dropdowns. |
+1 Just ran into this issue and would love an append-to-body option. |
Open to PRs for this, I don't think this is in the immediate roadmap |
+1 |
I have something working locally, I'll create a PR once I give it a once-over. |
@caitp To your concerns, is it against protocol do |
+1 |
This issue plagued me for awhile as well. The code below is a bit of a kludge, but it works. It clones the dropdown and marshals the click events back to the items in the original dropdown (in case you've been good about event delegation). Hook the following code up to
Again, it works, but It's not really optimized -- if anyone cares to do so, feel free... :-) |
Federnando's solution does not work if you scroll |
Just as tooltip (and now datepicker via #998) support an add-to-body option, it would be handy to have it for dropdown-toggle.
The text was updated successfully, but these errors were encountered: