Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Sidenav slide animation not working with ui-router #3576

Closed
jws305 opened this issue Jul 3, 2015 · 11 comments
Closed

Sidenav slide animation not working with ui-router #3576

jws305 opened this issue Jul 3, 2015 · 11 comments
Assignees
Milestone

Comments

@jws305
Copy link

jws305 commented Jul 3, 2015

I am having an issue getting the slideout effect with the sidenav component when using ui-router. If I disable the router, the nav slides out as expected but when the router is used, the backdrop fades in but the sidenav just appears.

Version using ui-router
http://plnkr.co/edit/CqtIyjFnn1nwH3FSi2Vj

Same example but without the router
http://plnkr.co/edit/0V60iLs5Auayb8Tt0HQu

Library versions:

  • angular 1.4.1
  • angular-material 0.10.0
  • ui-router 0.2.15
@ThomasBurleson ThomasBurleson self-assigned this Jul 6, 2015
@ThomasBurleson ThomasBurleson modified the milestone: Backlog Jul 6, 2015
@cleever
Copy link

cleever commented Jul 24, 2015

Does anyone else have issues with sidenav and ui-router?

@ghost
Copy link

ghost commented Aug 5, 2015

I am. I get the same behavior. I don't get any animation, and I am also not getting a backdrop. The "ng-enter" never gets removed from the backdrop (I assume because the animation is not firing), so the backdrop, although positioned correctly is transparent.

UPDATE: Seems like all animations may be broken somehow? FAB Toolbar animation is broken too, but I have not investigated further.

@leex
Copy link

leex commented Aug 17, 2015

I also have this problem.

"angular": "1.4.4",
"angular-ui-router": "0.2.15",
"angular-material": "0.10.1"

@endyjasmi
Copy link

Hello, the same problem.

Here's my bower.json

{
  "name": "web-client",
  "version": "0.0.0",
  "dependencies": {
    "angular": "~1.4.4",
    "angular-animate": "~1.4.4",
    "angular-aria": "~1.4.4",
    "angular-message-format": "~1.4.4",
    "angular-messages": "~1.4.4",
    "angular-resource": "~1.4.4",
    "angular-route": "~1.4.4",
    "angular-sanitize": "~1.4.4",
    "angular-material": "~0.10.1",
    "roboto-fontface": "~0.4.3",
    "angular-translate": "~2.7.2",
    "material-design-icons": "~2.0.0"
  }
}

@qvazzler
Copy link

+1

"dependencies": {
    "angular": "~1.4.4",
    "jquery": "2.1.4",
    "jquery-validation": "1.13.1",
    "angular-material": "master",
    "moment": "2.10.3",
    "respond": "1.4.2",
    "angular-material-icons": "~0.5.0",
    "angular-resource": "~1.4.1",
    "ui-router": "~0.2.15"
  }

@endyjasmi
Copy link

Found some time today, so I look into this problem. Not sure if this is a problem or not but whenever the sidenav is shown of remove, the library will add .md-closed-remove and .md-closed-add respectively. Both this class have transition duration set to 0s. So, I work around this by adding the following css to my stylesheet.

.md-sidenav-left.md-closed-add,
.md-sidenav-left.md-closed-remove {
    transition: 0.2s ease-in all;
}

Where .md-sidenav-left is the class identifier for my sidenav node and I like ease-in as my transition timing function.

Not sure if this helps. Cheers!

@ThomasBurleson ThomasBurleson modified the milestones: 0.12.0, Backlog Aug 25, 2015
@ThomasBurleson
Copy link
Contributor

Perhaps this issue is related to #4246?

@lscordilis
Copy link

@endyjasmi Thanks, man. That's a suitable work around until this is patched. The latest Angular build breaks the animation, as pointed out in #4246

@endyjasmi
Copy link

Glad that it helps.

Cheers

kennethcachia pushed a commit to kennethcachia/material that referenced this issue Sep 23, 2015
@jesperzach
Copy link

Still not fixed. Shows no animation nor backdrop.

    "angular": "~1.4.7",
    "angular-material": "master",
    "angular-ui-router": "~0.2.15",

Again, works fine without ui-router.

@ThomasBurleson
Copy link
Contributor

@jesperzach - please do not comment on closed issue. Open a new issue or post to the Forum.

@angular angular locked and limited conversation to collaborators Oct 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants