Section limit states not working.

Created on 15 May 2025, 2 days ago

Problem/Motivation

The section maximum and minimum checkboxes have states set on them to make the count input visible when checked, but currently the inputs are visible at all times.

I've upgraded to 10.4 recently and as a result the inputs are actually always hidden for me. This doesn't seem to be the case on a fresh 10.4 install so that's a me problem, but this will fix the intended functionality along with my issue.

Steps to reproduce

Configure a section and set the "Limit by" field to either "Region" or "Section". The minimum and maximum inputs should be visible below their relevant checkboxes even when they aren't checked.

Proposed resolution

Update the input name in the processSettingsForm callback, currently the path starts with layout_builder_limit but the correct start of the path seems to be layout_settings.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇺Australia LachlanJ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024