soundasleep / jquery-dropdown

Bootstrap-style dropdowns with some added features and no dependencies.
Other
767 stars 268 forks source link

Relocate automatically target dropdown elements #83

Closed rapito closed 7 years ago

rapito commented 9 years ago

For dynamic content, based on the template engine you're using, it can be a pain to implement an extra js-script to add the generated .jq-dropdown elements at the end of the tag.

This built-in feature would be great:

On page loaded: Append all .jq-dropdown elements to end of body. On clicked [data-jq-dropdown] attributed elements: Append target(.jq-dropdown) element to end of body.

claviska commented 7 years ago

A future version will completely rework how positioning is managed so hopefully workarounds like this won't be needed.