Skip to content

[5.7]: Read only on relational fields styling/usability broken #17127

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

Closed
white-ruud opened this issue Apr 18, 2025 · 2 comments
Closed

[5.7]: Read only on relational fields styling/usability broken #17127

white-ruud opened this issue Apr 18, 2025 · 2 comments
Labels

Comments

@white-ruud
Copy link

What happened?

Description

I like the read only option on fields, very useful for the fields we import and shouldn't be editable for users.
Only styling and usability does break a bit on relational fields:

  1. Hierarchy layout is gone (entries) and not possible to open the item in a slideout

Read only:
Image
Normal:
Image

  1. Variants can't be opened anymore in slideout

Read only:
Image
Normal:
Image

Wanted behavior

  1. Hierarchy should still be visually available and opening in a slideout should work
  2. Opening in a slideout should work
  3. Plain text fields should maybe just render as text instead of a disabled input? Feels more logically for me

Craft CMS version

5.7.1.1

PHP version

No response

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

  • Commerce 5.3.9
  • [..]
@brandonkelly
Copy link
Member

Thanks for reporting that! The hierarchy bug has been fixed for the next Craft and 5 releases. (The same bug exists in Craft 4 when viewing a past revision of an entry.)

Regarding opening slideouts on double-click and static text inputs – those are both working as expected. Feel free to open discussions on those behaviors if you feel strongly about it.

@brandonkelly
Copy link
Member

Craft 4.15.1 and 5.7.2 are out with that fix. Thanks again!

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

No branches or pull requests

2 participants