ngx-bootstrap: dropdown [appendToBody]="true" not showing

If I switch to [appendToBody]="true" the dropdown menu is not rendered. Neither at the end of the body. With false it’s rendering ok.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 30 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Gabriel is looking into it

Dear maintainers 😉 Any ideas how do you want to implement it? It’s very needed feature (actually totally required for me). I could help with that, do some PRs, but some general notes how you see it, would be nice.

Is the current dropdown-append-to-body not working? Or am I mis-understanding its purpose?

I added overflow: hidden to the parent div of the append to body example on the site and the dropdown is hiding inside the div:

image

Yes, we did. If lucky it will be done till Monday

is this available for use ?

I will be wrapping up this today and publishing

as a status update: I managed to write new component loader service it is really easy to use: https://github.com/valor-software/ng2-bootstrap/blob/development/src/popover/popover.directive.ts

So I will be updateding dropdowns to work with it as a head us it will be container='body'

This week I want to finish with docs: http://valorkin.github.io/ng2-bootstrap/#/

current preview version

yep, we updated a lot of code, added huge of test, written more docs converted all ngModel to reactive version at the moment I am working on new injection service if done today, I will updating all components with it adding to body\datepicker popup, etc…

Testing and will roll-out new version of dropdown next week https://github.com/valor-software/ng2-bootstrap/pull/1771

@valorkin Any updates regarding this? ✨

@valorkin @jtomaszewski Did you start working on a solution for this? I really need appendToBody for a project. Is there any way I can help?