|
@@ -447,6 +447,7 @@ export function createHydrationFunctions(
|
|
|
!optimized ||
|
|
!optimized ||
|
|
|
patchFlag & (PatchFlags.FULL_PROPS | PatchFlags.NEED_HYDRATION)
|
|
patchFlag & (PatchFlags.FULL_PROPS | PatchFlags.NEED_HYDRATION)
|
|
|
) {
|
|
) {
|
|
|
|
|
+ const isCustomElement = el.tagName.includes('-')
|
|
|
for (const key in props) {
|
|
for (const key in props) {
|
|
|
// check hydration mismatch
|
|
// check hydration mismatch
|
|
|
if (
|
|
if (
|
|
@@ -463,7 +464,8 @@ export function createHydrationFunctions(
|
|
|
(key.endsWith('value') || key === 'indeterminate')) ||
|
|
(key.endsWith('value') || key === 'indeterminate')) ||
|
|
|
(isOn(key) && !isReservedProp(key)) ||
|
|
(isOn(key) && !isReservedProp(key)) ||
|
|
|
// force hydrate v-bind with .prop modifiers
|
|
// force hydrate v-bind with .prop modifiers
|
|
|
- key[0] === '.'
|
|
|
|
|
|
|
+ key[0] === '.' ||
|
|
|
|
|
+ isCustomElement
|
|
|
) {
|
|
) {
|
|
|
patchProp(el, key, null, props[key], undefined, parentComponent)
|
|
patchProp(el, key, null, props[key], undefined, parentComponent)
|
|
|
}
|
|
}
|