Refactor #3965 - ObjectUtils getVNodeProp update

pull/4016/head
Tuğçe Küçükoğlu 2023-06-02 09:45:56 +03:00
parent dc599f3298
commit e90b4d00cd
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ export default {
let kebapProp = prop.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
let propName = Object.prototype.hasOwnProperty.call(props, kebapProp) ? kebapProp : prop;
return vnode.props[prop] && vnode.props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
return vnode.type.extends.props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
}
return null;