Replies: 1 comment 4 replies
-
I wonder whether we're hitting this branch the only other possibility is this one which eventually comes back to the above line. We can test this by doing const webComp = document.createElement('your-web-component');
webComp.value = "x" // does this work?
webComp.setAttribute("value", "x") // does this work? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We developed a web component which have an attribute named value.
The problem we face is that preact seems to ignore this attribute when we set a value to it.
It works fine if we rename the attribute in the web component to something else.
Is there some special handling of the "value" attribute in preact?
Beta Was this translation helpful? Give feedback.
All reactions