Skip to content

safeguard against the lack of disclosure menu in a matrix field#18372

Merged
brandonkelly merged 3 commits into5.xfrom
bugfix/18366-matrix-field-with-hidden-label
Feb 3, 2026
Merged

safeguard against the lack of disclosure menu in a matrix field#18372
brandonkelly merged 3 commits into5.xfrom
bugfix/18366-matrix-field-with-hidden-label

Conversation

@i-just
Copy link
Contributor

@i-just i-just commented Feb 3, 2026

Description

If a matrix field added to a field layout has a hidden label, then it won’t have a disclosure menu either, but some of our code assumed the disclosure menu is always there.

Steps to reproduce:

  • clean 5.9.5 installation with one site
  • create a matrix field with all default params and an entry type that can contain only title
  • create a section with an entry type that contains this matrix field; double-click on the added matrix field and check the “Hide” checkbox for the field’s “Label” (apply and save all the way)
  • create an entry in that section - you should see the errors in the console straight away

Related issues

#18366

@i-just i-just requested a review from brandonkelly February 3, 2026 14:36
@brandonkelly brandonkelly merged commit df70b40 into 5.x Feb 3, 2026
2 checks passed
@brandonkelly brandonkelly deleted the bugfix/18366-matrix-field-with-hidden-label branch February 3, 2026 16:41
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

Successfully merging this pull request may close these issues.

2 participants