mdbootstrap / mdb4-angular-ui-kit

Angular Bootstrap with Material Design - Powerful and free UI KIT
https://mdbootstrap.com/docs/angular/
MIT License
18 stars 1 forks source link

Dropdown with `container="body"` is broken #9

Open Klinton90 opened 4 years ago

Klinton90 commented 4 years ago

Code example

<li mdbDropdown class="nav-item dropdown" container="body">
    <a mdbDropdownToggle
           mdbWavesEffect
           class="nav-link dropdown-toggle"
           id="navbarDropdownMenuLink"
           data-toggle="dropdown"
           aria-haspopup="true"
           aria-expanded="false">Blah</a>
    <div *dropdownMenu class="dropdown-menu dropdown dropdown-primary" role="menu">
          <a mdbWavesEffect
             translate
             class="dropdown-item waves-light"
             (click)="navbar.hide()"
             routerLink="/admin-panel"
             routerLinkActive="active">blah2</a>
    </div>
<li>

Error: ERROR TypeError: Cannot read property 'parentNode' of null