diff --git a/packages/react-dom-bindings/src/shared/ReactDOMInvalidARIAHook.js b/packages/react-dom-bindings/src/shared/ReactDOMInvalidARIAHook.js index 1546c32ed965e..4bc62e3de4ddb 100644 --- a/packages/react-dom-bindings/src/shared/ReactDOMInvalidARIAHook.js +++ b/packages/react-dom-bindings/src/shared/ReactDOMInvalidARIAHook.js @@ -6,7 +6,6 @@ */ import {ATTRIBUTE_NAME_CHAR} from './isAttributeNameSafe'; -import isCustomComponent from './isCustomComponent'; import validAriaProperties from './validAriaProperties'; import hasOwnProperty from 'shared/hasOwnProperty'; @@ -76,7 +75,7 @@ function validateProperty(tagName, name) { return true; } -function warnInvalidARIAProps(type, props) { +export function validateProperties(type, props) { if (__DEV__) { const invalidProps = []; @@ -108,10 +107,3 @@ function warnInvalidARIAProps(type, props) { } } } - -export function validateProperties(type, props) { - if (isCustomComponent(type, props)) { - return; - } - warnInvalidARIAProps(type, props); -}