From 7659c4d9e0e4de2ec758c9a03ad7cbf07fc696d0 Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Tue, 2 Apr 2024 10:57:23 -0400 Subject: [PATCH] Remove dynamic www flag for disableInputAttributeSyncing (#28703) Remove dynamic www flag for disableInputAttributeSyncing --- packages/shared/forks/ReactFeatureFlags.www-dynamic.js | 1 - packages/shared/forks/ReactFeatureFlags.www.js | 2 +- scripts/jest/setupTests.www.js | 4 ++++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/shared/forks/ReactFeatureFlags.www-dynamic.js b/packages/shared/forks/ReactFeatureFlags.www-dynamic.js index 73c9c571c1b99..1bada798e664c 100644 --- a/packages/shared/forks/ReactFeatureFlags.www-dynamic.js +++ b/packages/shared/forks/ReactFeatureFlags.www-dynamic.js @@ -13,7 +13,6 @@ // Use __VARIANT__ to simulate a GK. The tests will be run twice: once // with the __VARIANT__ set to `true`, and once set to `false`. -export const disableInputAttributeSyncing = __VARIANT__; export const disableIEWorkarounds = __VARIANT__; export const enableBigIntSupport = __VARIANT__; export const enableLegacyFBSupport = __VARIANT__; diff --git a/packages/shared/forks/ReactFeatureFlags.www.js b/packages/shared/forks/ReactFeatureFlags.www.js index 688fa5bc7772e..589df65eacdf4 100644 --- a/packages/shared/forks/ReactFeatureFlags.www.js +++ b/packages/shared/forks/ReactFeatureFlags.www.js @@ -15,7 +15,6 @@ import typeof * as DynamicFeatureFlags from './ReactFeatureFlags.www-dynamic'; const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags'); export const { - disableInputAttributeSyncing, disableIEWorkarounds, enableBigIntSupport, enableTrustedTypesIntegration, @@ -57,6 +56,7 @@ export const enableUseMemoCacheHook = true; export const enableUseEffectEventHook = true; export const enableFilterEmptyStringAttributesDOM = true; export const enableAsyncActions = true; +export const disableInputAttributeSyncing = false; // Logs additional User Timing API marks for use with an experimental profiling tool. export const enableSchedulingProfiler: boolean = diff --git a/scripts/jest/setupTests.www.js b/scripts/jest/setupTests.www.js index 69870ad02a5fe..c17d83425de28 100644 --- a/scripts/jest/setupTests.www.js +++ b/scripts/jest/setupTests.www.js @@ -11,6 +11,10 @@ jest.mock('shared/ReactFeatureFlags', () => { // This flag is only used by tests, it should never be set elsewhere. actual.forceConcurrentByDefaultForTesting = !__VARIANT__; + // Flags that aren't currently used, but we still want to force variants to keep the + // code live. + actual.disableInputAttributeSyncing = __VARIANT__; + return actual; });