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
{{ message }}
Repository navigation
Cannot properly set numberish attribute(like tabindex) or boolean attribute on Vue custom element #12408
Observe the render result, we can see the second custom element doesn't have tabindex or data-test attribute, they are set on its properties, not attributes
What is expected?
Should have correct attributes
What is actually happening?
I believe this is coming from below in packages\runtime-dom\src\patchProp.ts
// #11081 force set props for possible async custom element(elasVueElement)._isVueCE&&(/[A-Z]/.test(key)||!isString(nextValue))
All non-string props with no capitals are set as element's properties
Activity
fix(runtime-dom): should properly patch as props for vue custom eleme…
TechQuery commentedon Dec 7, 2024
Object & Array failed too: vuejs/vue-web-component-wrapper#69 (comment)
fix(custom-element): should properly patch as props for vue custom el…