Skip to content
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

Rerender form fields when type changes to prevent stale components #6620

Merged
merged 2 commits into from May 23, 2022

Conversation

niklasnatter
Copy link
Contributor

Q A
Bug fix? yes
New feature? no
BC breaks? no
Fixed tickets fixes #6613
Related issues/PRs replaces #6615
License MIT

What's in this PR?

The PR adjusts the Rerender component to rerender a form field if its type is changed.

Why?

Because we might end up with stale components if we do not do this. For example, at the moment, when switching between block types with selection properties, the selection property is not rerendered and therefore the type of the selection overlay does not match the new block typy (see #6613).

@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants