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

Dropdown not working #50

Open
vivekimsit opened this issue Jan 12, 2015 · 7 comments
Open

Dropdown not working #50

vivekimsit opened this issue Jan 12, 2015 · 7 comments

Comments

@vivekimsit
Copy link

While clicking on any dropdown item I am getting the following error on the console:

Uncaught ReferenceError: Animation is not defined

in paper-dropdown-transition line 80

@simonseyer
Copy link

I have the same problem and it's probably caused by the following:
Failed to execute 'write' on 'Document': It isn't possible to write into a document from an asynchronously-loaded external script unless it is explicitly opened. web-animations-next-lite.min.js.
The script tries to add a script by adding a script tag to the document:

document.write('<script src="' + location + 'target-config.js"></script>')

@morethanreal
Copy link

web-animations-next-lite.min.js shouldn't try to document.write. Which Polymer release are you on, and can you check what version of web-animations-js you're using?

@vivekimsit
Copy link
Author

Guys, I am trying to use paper-dropdown-menu it was working fine few days back. I update my bower but still its not working now. On console I can see that I am missing this web-animations-lite-min.js but nowhere in the doc its mentioned that its needed for dropdown menu.

I think its related to this issue Polymer/polymer#1014

Can someone point me to doc for how to get web-animation-lite?

@simonseyer
Copy link

Ok, my fault. I don't know, why my web-animations-next-lite.min.js was different compared to the repository version. After a new checkout everything works well.

@cdata
Copy link

cdata commented Jan 13, 2015

@vivekimsit In case your question about where to find the Web Animations polyfill hasn't been addressed, refer to https://github.com/web-animations/web-animations-js for the latest.

@vivekimsit
Copy link
Author

Hi,

I have checked out the latest source but now I am facing some other issue while opening the dropdown, it says:

Uncaught TypeError: Cannot read property 'cancel' of null from the file web-animations-next-player.js

I think the dev is not tested properly while pushing new changes. So, let me know if I should fall back to the core menu instead.

Thanks!

@ahmed-masud
Copy link

This problem seems to have resurfaced for me.... My element that utilizes neon-animations was working against Polymer 1.0.4 and broke down somewhere between then and the latest release

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

5 participants