From 7f1628f3db05985e40f7144a1287f720d3cd76ca Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Wed, 4 Mar 2015 15:13:20 +0100 Subject: [PATCH 1/5] Add an `append-to-body` attribute to the `` directive that moves the dropdown element to the end of the document body before opening it, thereby solving problems with the dropdown being displayed below elements that follow the `` element in the document. This implementation is modeled after the `typeahead-append-to-body` support from UI Bootstrap. See #41 (and quite a few dupes). --- src/bootstrap/choices.tpl.html | 3 ++- src/common.css | 12 ++++----- src/common.js | 22 ++++++++++++++++- src/select2/choices.tpl.html | 3 ++- src/selectize/choices.tpl.html | 3 ++- src/uiSelectChoicesDirective.js | 43 +++++++++++++++++++++++++++++++-- 6 files changed, 74 insertions(+), 12 deletions(-) diff --git a/src/bootstrap/choices.tpl.html b/src/bootstrap/choices.tpl.html index da1648f9c..304771720 100644 --- a/src/bootstrap/choices.tpl.html +++ b/src/bootstrap/choices.tpl.html @@ -1,6 +1,7 @@