Skip to content

Commit

Permalink
fixup! fixup! Update blacklisted props that can be passed to native H…
Browse files Browse the repository at this point in the history
…TML elements using the transferProps principle
  • Loading branch information
mbohal committed Feb 13, 2024
1 parent b8d3303 commit 3c8ab8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/_helpers/transferProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const transferProps = (props) => {
const {
children,
className,
contentEditable,
dangerouslySetInnerHTML,
ref,
staticContext,
Expand All @@ -26,6 +27,7 @@ export const transferProps = (props) => {
const invalidProps = Object.keys({
children,
className,
contentEditable,
dangerouslySetInnerHTML,
ref,
staticContext,
Expand All @@ -36,7 +38,7 @@ export const transferProps = (props) => {

if (invalidProps.length > 0) {
// eslint-disable-next-line no-console
console.error(`Invalid prop(s) supplied to the transferProps method: ${invalidProps.join(', ')}`);
console.error(`Invalid prop(s) supplied to the "transferProps" function: "${invalidProps.join('", "')}"`);
}
}

Expand Down

0 comments on commit 3c8ab8f

Please sign in to comment.