forked from angular-ui/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dropdown): make dropdown-append-to-body configurable (angular-ui…
…#6356) * feat(dropdown): make dropdown-append-to-body configurable Make dropdown-append-to-body accept a value which will be evaluated to determine if the menu should be appended to body. If no value is specified, or a non-false value is specified then the menu will be appended to body. If the value is `false` then the menu will not be appended to body. * feat(dropdown): append and remove menu when menu is opened or closed Only append and remove append-to and append-to-body menus when the menu is opened or closed. This allows for the values of append-to and append-to-body to be evaluated when the menu is toggled open, and also prevents littering of the DOM. * fix(dropdown): don't remove the dropdown-menu on close Instead of removing the dropdown-menu on close, append it back to the original element.
- Loading branch information
Showing
3 changed files
with
271 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.