Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Dropdown breaks in chrome 52 #75

Open
jakemac53 opened this issue May 27, 2016 · 6 comments
Open

Dropdown breaks in chrome 52 #75

jakemac53 opened this issue May 27, 2016 · 6 comments

Comments

@jakemac53
Copy link
Contributor

When clicking the dropdown in chrome 52, I get the following error, Uncaught TypeError: Failed to execute 'animate' on 'Element': 'function (e){function f(a,b,c){return 3*a*(1-c)*(1-c)*c+3*b*(1-c)*c*c+c*c*c}for(var g=0,h=1;;){var i=(g+h)/2,j=f(a,c,i);if(Math.abs(e-j)<.001)return f(b,d,i);e>j?g=i:h=i}}' is not a valid value for easing.

You can see this in the live demo, just click one of the dropdowns. Presumably other animations are broken as well.

From looking at the spec it seems that easing is expected to be a string. Not sure if this is due to a spec update, or some clash between the polyfill and native implementation?

@jakemac53
Copy link
Contributor Author

jakemac53 commented May 27, 2016

Looks like this is actually related to paper-dropdown, or more specifically the paper-dropdown-transition. Overriding the transition seems to fix the issue.

@vardhans
Copy link

Hi @jakemac53
I am facing the same problem. Would mind telling me how did you manage to fix this issue.?

Thanks
Vardhan.

@ThaumRystra
Copy link

@vardhans You can comment out the following lines in paper-dropdown.html:

 43    <link href="paper-dropdown-transition.html" rel="import">
104    publish: {
105      transition: 'paper-dropdown-transition'
106    },

Which should stop the dropdown animating (it will still fade in) until a fix is out.

@vardhans
Copy link

Thanks @ThaumRystra I managed to get that working.

@ThaumRystra
Copy link

Unfortunately my fix above breaks dropdown boxes appearing in other overlay elements. They won't bring themselves to the front.

@peterchibunna
Copy link

You can also avoid this bug by creating the paper-dropdown-menu with the no-animations attribute:

<paper-dropdown-menu no-animations> ...

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

4 participants