Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

truble with nav and sidenav-overlay #368

Closed
Sb8691 opened this issue Sep 9, 2017 · 1 comment
Closed

truble with nav and sidenav-overlay #368

Sb8691 opened this issue Sep 9, 2017 · 1 comment

Comments

@Sb8691
Copy link

Sb8691 commented Sep 9, 2017

Servus

I use this libary and it's great. I have just one little issue with my navbar after .side-nav is opend i click for example on /login angular renders template correctly

but on the bottom is element :

<div id="sidenav-overlay" style="opacity: 1;" class=""></div>

and after redirect it should set opacity do 0 and remove element but it's not working. I provide my example navabar. I tried to use it with native angular router and than also inside click function, still the same result.

Thanx for help.

`

    <ul class="right hide-on-med-and-down">
        <li><a routerLink="/xxxx">xxx</a></li>
    </ul>

    <ul id="nav-mobile" class="side-nav">
       <li><a routerLink="/profile"        routerLinkActive="active">Profile</a></li>
        <li><a href="/logout" (click)="logout($event)">Logout</a></li>
    </ul>
   
    <div class="menu-logo-wrapper">
        <a materialize="sideNav" [materializeParams]="[{edge:'left'}]" data-activates="nav-mobile" class="button-collapse menu-button"><i class="material-icons">menu</i></a>
        <a id="logo-container" href="#" class="logo">Logo</a>
    </div>
   
</div>
`
@Sb8691 Sb8691 closed this as completed Sep 21, 2017
@Sb8691 Sb8691 reopened this Sep 21, 2017
@Sb8691
Copy link
Author

Sb8691 commented Sep 21, 2017

Anyone who has similar issue: [materializeParams]="[{edge:'left', closeOnClick:true}]" -> close on click true deal withit

@Sb8691 Sb8691 closed this as completed Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant