Skip to content

Support hidden until-found attribute value#36410

Open
raashish1601 wants to merge 1 commit intofacebook:mainfrom
raashish1601:codex/hidden-until-found
Open

Support hidden until-found attribute value#36410
raashish1601 wants to merge 1 commit intofacebook:mainfrom
raashish1601:codex/hidden-until-found

Conversation

@raashish1601
Copy link
Copy Markdown

Summary

Fixes #24740.

React currently treats hidden as a boolean attribute, so the until-found string value is serialized as an empty hidden attribute. The HTML hidden attribute also supports the until-found state, so this preserves that exact value in client and server rendering while keeping existing boolean behavior for other values.

Tests

  • node .\\scripts\\jest\\jest-cli.js DOMPropertyOperations-test --runInBand
  • node .\\scripts\\jest\\jest-cli.js ReactDOMServerIntegrationAttributes-test --runInBand
  • git diff --check

@meta-cla meta-cla Bot added the CLA Signed label May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: hidden attribute does not accept string values

1 participant