Skip to content

feat: adds forceRenderAllFields admin prop to force all fields in edit view to render immediately #10464

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

PatrikKozak
Copy link
Contributor

@PatrikKozak PatrikKozak commented Jan 8, 2025

What?

Adds new forceRenderAllFields admin prop to collection & global configs.

This new prop forces all fields in the Edit view to render immediately, regardless of scroll position. By default, this is set to false to improve performance, as fields are progressively rendered to balance load times. Enabling this option can make it easier to locate fields using browser search (e.g., CMD+F).

admin: {
  forceRenderAllFields: true,
},

Why?

Previously, fields were only rendered to a certain viewport pixel height for performance purposes. As a result, this disallowed using the browser search on all fields in the edit view if they were not completely loaded in i.e in the proper viewport.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
…onfigs
Copy link
Member

@JessChowdhury JessChowdhury left a comment

Choose a reason for hiding this comment

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

Tested locally and all looks good.

@denolfe denolfe merged commit 07ff181 into 2.x Jan 9, 2025
36 checks passed
@denolfe denolfe deleted the feat/2.x/forceRenderAllFields branch January 9, 2025 14:06
Copy link
Contributor

github-actions bot commented Jan 9, 2025

🚀 This is included in version v2.31.0

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.

None yet

3 participants