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

Node fields not changing when changing node type #326

Open
WHITE-developer opened this issue Nov 8, 2022 · 3 comments
Open

Node fields not changing when changing node type #326

WHITE-developer opened this issue Nov 8, 2022 · 3 comments

Comments

@WHITE-developer
Copy link

Describe the bug

When you switch the node type the fields that are shown aren't updated. You have to close and reopen the sidebar to see the right fields

Steps to reproduce

  1. Add a node
  2. Try to change the node type
  3. The fields of the node won't change until you close and reopen the sidebar

Craft CMS version

4.3.1

Plugin version

2.0.10

Multi-site?

Yes

Additional context

No response

@engram-design
Copy link
Member

Yep, a known issue with the element slide-out editor, and I've spoken with @brandonkelly about this. It's really down to how the field layout elements work, in that if a custom field has changed it's not re-rendered. Because we use a single fieldlayoutelement to render the settings for a particular node type, this isn't being treated as "changed". Instead, the slide-out will look at the fieldlayoutelement, see that it's already there, and use the cached version.

To get around this, we'd need to do some significant side-stepping, which I've yet to figure out.

@Mosnar
Copy link

Mosnar commented Feb 14, 2023

Just ran into this and came to file an issue. It certainly "feels" broken. Have you had a chance to look into a solution?

@engram-design
Copy link
Member

Haven't been able to figure this one out yet, sorry. We'd have to do a whole lot of work and re-inventing the wheel to pull this off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants