Skip to content

Commit

Permalink
Refactor #3965 - ObjectUtils getVNodeProp update
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed May 24, 2023
1 parent 3f9334e commit 7dc9a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/utils/ObjectUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.type.props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
return vnode.props[prop] && vnode.props[prop].type === Boolean && props[propName] === '' ? true : props[propName];
}

return null;
Expand Down

0 comments on commit 7dc9a48

Please sign in to comment.