-
Notifications
You must be signed in to change notification settings - Fork 256
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
google-map-poly can't be created dynamically #411
Comments
I'm experiencing the same problem. I'm using the google map webcomponent in a vaadin project in which elements are created dynamically by default. I get the same error message and haven't found a workaround yet. |
I also have this issue in Chrome, but in Firefox it is fine, presumably because it is using the Polyfill which allows this whereas in Chrome it is using the native implementation. |
Confirming this problem, which prevents this component from being used in an Elm context. |
From what I can see, the google-map-poly component is making one of the errors as described here: i.e. it's setting an attribute value during creation. In this case, the attribute is 'draggable' which seems to be of a different nature ('native'?) to some of the other properties. Setting this value during construction was throwing the exception shown in the link above and preventing the shadow root from being created. By removing this from the list of properties, the value is no longer set during construction. I don't know if this is the definitive solution, but I will create a PR for it so that the fix/workaround can at least be examined. |
The below code throws the error:
Uncaught DOMException: Failed to construct 'CustomElement': The result must not have attributes
. Does anyone know why?The text was updated successfully, but these errors were encountered: