Closed esd100 closed 7 years ago
Is anyone working on polymer paper-dropdown-menu?
I would remove the on-tap for the paper-item
and then add a listener for the selected-item-changed
that is fired by the paper-dropdown-menu
As a general good practice, elements should not load polyfills (eg web animations, web components), that should be done in the app (eg your index.html).
In this element, you're importing neon-animation/web-animations.html, which assumes you have web-animations-js
between your dependencies.
My suggestion would be to update your bower.json to include this dependency, and load both web animations and web components polyfill in your index.html, not in the custom element.
Thanks for your help! I'll test these solutions out!
As it turns out, I made several changes which resulted in the solution the animation problem. Although I'm not exactly sure which change was the critical component to fix the break, I will put them down as record of possible things to check.
As it turns out, I made no changes to on-tap
or adding an event-listener
for paper-dropdown-menu
prior to getting it to work, so I can safely say that those changes were not critical to the function
I ran bower list | grep -v '│ '
to show versions of my dependencies and everything looked ok
I checked my bower.json
file and saw that there were several saved resolutions
which I had set back awhile ago and had forgotten about, so I deleted those resolutions
and deleted my components
folder
I also noticed with @valdrinkoshi help that I was missing the dependency "web-animations-js": "web-animations/web-animations-js#^2.2"
, so I added that to my dependencies
I also noticed that I was missing the paper-input
dependency, which was not an item in the component listed above but an item in the parent component which was a form
, so I added that
I also deleted the <link rel="import" href="../../bower_components/neon-animation/web-animations.html">
from the components and just added the script of the web-animations-js polyfill into my index.html
Reran bower update
With these changes the animations and they worked. Thanks for the help @valdrinkoshi
Description
Custom element with paper-dropdown menu does nto display dropdown menu and gives multiple console violations and error on-tap event.
Error
Element
Browsers Affected