You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeError: Argument 1 of Window.getDefaultComputedStyle does not implement interface Element.
openPopup - is my custom function in polymer "testelement".
The error appears only in FireFox (version 31) on other browsers (Chrome, Safari, Opera) works perfect. How to fix it ?
Ok, now I can see. I had the same problem. I have solved it like this:
Instead of:
$(this.$.popup).show();
Try this:
this.$.popup.style.display = "block";
It seems, it is impossible to use jQuery in polymer element javascript function when you execute it from another polymer element (in firefox only!). Please somebody smarter than me to improve this answer :)
The text was updated successfully, but these errors were encountered:
Repost of the following stackoverflow post which includes a workaround: http://stackoverflow.com/questions/24994129/typeerror-argument-1-of-window-getdefaultcomputedstyle-does-not-implement-inter
I have the following code outside my polymer element (in another polymer):
The line:
Is causing error:
openPopup - is my custom function in polymer "testelement".
The error appears only in FireFox (version 31) on other browsers (Chrome, Safari, Opera) works perfect. How to fix it ?
Edit (openPopup function):
ANSWER
Ok, now I can see. I had the same problem. I have solved it like this:
Instead of:
Try this:
It seems, it is impossible to use jQuery in polymer element javascript function when you execute it from another polymer element (in firefox only!). Please somebody smarter than me to improve this answer :)
The text was updated successfully, but these errors were encountered: