Skip to content

Commit

Permalink
fix: hasOwnProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
answershuto committed Sep 5, 2024
1 parent 407edfe commit a9314a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rax-compat/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function transformProps(type: string, props: ComponentProps<JSXElementConstructo

const needTransform = (type !== 'svg');
if (needTransform) {
if (possibleStandardNames.hasOwnProperty(lowerCasedPropKey)) {
if (Object.prototype.hasOwnProperty.call(possibleStandardNames, lowerCasedPropKey)) {
// Transform attribute names that make it works properly in React.
key = possibleStandardNames[lowerCasedPropKey];
} else {
Expand Down

0 comments on commit a9314a3

Please sign in to comment.