-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[0.5.5] Function calling is not working in custom element #1484
Comments
Looks like you're not importing Polymer. You need something like this at the top.
|
It is imported in the index and afterwards I tried to import it in the custom element because I suspected it was an import issue but it did not work either.
|
Your index page should be importing webcomponentjs:
If that doesn't fix the issue for you, perhaps you can create a full test case on codepen or something like that. |
You're missing the
Should be:
|
@arthurevans Good catch. |
I don't know if I should laugh or cry... I've been looking for this error about 8 hours. Thank you so much for the help! 😄 |
No problem! Glad you got it sorted. |
Hi,
my problem is this, I have made a custom element, a really simple one:
Once inserted in my index, I click on the button but it never toggles and I cannot even guess why because I have done a couple of similar ones and they work perfectly.
Other uses of data binding work well such as inputs... I have no clue of what is going on
Can be maybe a missing import? Or maybe I should update polymer files?
Thank you for the help! :)
The text was updated successfully, but these errors were encountered: