-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
Closed
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: custom elements
Description
Vue version
3.5.0+
Link to minimal reproduction
Steps to reproduce
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
(el as VueElement)._isVueCE &&
(/[A-Z]/.test(key) || !isString(nextValue))All non-string props with no capitals are set as element's properties
System Info
No response
Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problemscope: custom elements