Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,15 @@ describe('Input event responder', () => {
ref.current.dispatchEvent(
new Event('input', {bubbles: true, cancelable: true}),
);
expect(onChangeCalled).toBe(0);
expect(onValueChangeCalled).toBe(0);

if (ReactFeatureFlags.disableInputAttributeSyncing) {
// TODO: figure out why. This might be a bug.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't new. Copypaste from ChangeEventPlugin test from which this was copied.

expect(onChangeCalled).toBe(1);
expect(onValueChangeCalled).toBe(1);
} else {
expect(onChangeCalled).toBe(0);
expect(onValueChangeCalled).toBe(0);
}
});

it('should consider initial checkbox checked=true to be current', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/forks/ReactFeatureFlags.www-dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

export const warnAboutSpreadingKeyToJSX = __VARIANT__;
export const disableModulePatternComponents = __VARIANT__;
export const disableInputAttributeSyncing = __VARIANT__;

// These are already tested in both modes using the build type dimension,
// so we don't need to use __VARIANT__ to get extra coverage.
Expand All @@ -25,6 +26,5 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
// Update the tests so that they pass in either mode, then set these
// to __VARIANT__.
export const enableTrustedTypesIntegration = false;
export const disableInputAttributeSyncing = false;
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
export const enableModernEventSystem = false;