-
Notifications
You must be signed in to change notification settings - Fork 13
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
editor
is undefined
#18
Comments
The issue is with Elm the way it handles external libraries Specifically, Elm requires special handling to properly register web components in the global scope for usage. See https://bigardone.dev/blog/2018/09/09/elm-and-web-components |
thank you for the help |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, thank you for the great component!
I am trying to use this web component in Elm and it is working well.
But there is one small issue if I am trying to put property
value
from Elm to the web component.Sorry, I am not good at developing using web components, so perhaps I am missing something.
I am getting the following call chain when I am trying to set
![image](https://user-images.githubusercontent.com/80541559/143780216-1c61157f-b254-41ff-b881-cf5deab790ef.png)
value
property.And it seems that Elm somehow is able to call
value
property before the methodconnectedCallback
has been called (sothis.editor
is null).I am wondering if it is the issue with the web component itself (missing null check) or I am doing something wrong here.
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: