From b6e9c7aa2032de3c14187f52964055cd5a81a86c Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Sat, 6 Jan 2024 18:50:53 +0100 Subject: [PATCH] f flag --- packages/react-dom-bindings/src/client/ReactDOMComponent.js | 4 ++-- packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js | 2 +- .../src/shared/ReactDOMUnknownPropertyHook.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/react-dom-bindings/src/client/ReactDOMComponent.js b/packages/react-dom-bindings/src/client/ReactDOMComponent.js index 78f3d5383858d..24083f509981c 100644 --- a/packages/react-dom-bindings/src/client/ReactDOMComponent.js +++ b/packages/react-dom-bindings/src/client/ReactDOMComponent.js @@ -712,7 +712,7 @@ function setProp( case 'disableRemotePlayback': case 'formNoValidate': case 'hidden': - case 'inert' && enableNewBooleanProps: + case enableNewBooleanProps ? 'inert' : 'formNoValidate': case 'loop': case 'noModule': case 'noValidate': @@ -2487,7 +2487,7 @@ function diffHydratedGenericElement( case 'disableRemotePlayback': case 'formNoValidate': case 'hidden': - case 'inert' && enableNewBooleanProps: + case enableNewBooleanProps ? 'inert' : 'formNoValidate': case 'loop': case 'noModule': case 'noValidate': diff --git a/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js b/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js index 01fee01b2f518..0739ee2d8e571 100644 --- a/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js +++ b/packages/react-dom-bindings/src/server/ReactFizzConfigDOM.js @@ -1295,7 +1295,7 @@ function pushAttribute( case 'disableRemotePlayback': case 'formNoValidate': case 'hidden': - case 'inert' && enableNewBooleanProps: + case enableNewBooleanProps ? 'inert' : 'formNoValidate': case 'loop': case 'noModule': case 'noValidate': diff --git a/packages/react-dom-bindings/src/shared/ReactDOMUnknownPropertyHook.js b/packages/react-dom-bindings/src/shared/ReactDOMUnknownPropertyHook.js index 25bbd597fabcb..8f8f9ae9f2580 100644 --- a/packages/react-dom-bindings/src/shared/ReactDOMUnknownPropertyHook.js +++ b/packages/react-dom-bindings/src/shared/ReactDOMUnknownPropertyHook.js @@ -224,7 +224,7 @@ function validateProperty(tagName, name, value, eventRegistry) { case 'disableRemotePlayback': case 'formNoValidate': case 'hidden': - case 'inert' && enableNewBooleanProps: + case enableNewBooleanProps ? 'inert' : 'formNoValidate': case 'loop': case 'noModule': case 'noValidate': @@ -302,7 +302,7 @@ function validateProperty(tagName, name, value, eventRegistry) { case 'disableRemotePlayback': case 'formNoValidate': case 'hidden': - case 'inert' && enableNewBooleanProps: + case enableNewBooleanProps ? 'inert' : 'formNoValidate': case 'loop': case 'noModule': case 'noValidate':