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

focus custom attribute interferes with aurelia-animator-css #193

Open
Jaans opened this issue Feb 26, 2016 · 2 comments
Open

focus custom attribute interferes with aurelia-animator-css #193

Jaans opened this issue Feb 26, 2016 · 2 comments
Labels

Comments

@Jaans
Copy link

Jaans commented Feb 26, 2016

I think if have found some sort of bug where adding the focus custom attribute causes the Aurelia animation for either the parent or child router view to go all weird on me.

Context:

I'm using a router with a child router and using the aurelia-animator-css plugin.

The parent router is a left-side bar sub-nav with the child router filling the main content. I use the au-animate class on the section of each view template (along with swap-order="after") on the router-view custom element.
This works nicely to transition the new view from navigation onto the screen.

I have now added the focus custom attribute (after I discovered it's been added to the templating-resources some time back) to an input element for some of the views. This breaks the animation somehow - now it's no longer sliding in from off-screen on the right, but some how the view from the parent router is disappearing for a while and the slide goes too far left (off-screen partially) and when the easing finishes, it all just jumps back into position. I have confirmed that this goes away when I remove the focus attribute from the view.

Demo:

Here's a mini video clip showing what I mean.
OneDrive-Aurelia-Focus-breaks-animation

I have no idea where to even begin to look for the root cause?

@jdanyow
Copy link
Contributor

jdanyow commented Jun 1, 2016

cc @zewa666

@EisenbergEffect
Copy link
Contributor

@zewa666 Ping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants