winter
winter copied to clipboard
Empty section remains visible when all inner fields are hidden via triggers
Winter CMS Build
1.2
PHP Version
8.1
Database engine
MySQL/MariaDB
Plugins installed
No response
Issue description
In backend forms, if a section has fields that are conditionally shown using YAML trigger, the section may remain expanded with no content when all its fields are hidden. This creates an empty panel section UI when switching away from the selected option that originally made the section visible.
Steps to replicate
- Create a backend form with:
- A radio field (e.g., auth_type) to control the display
- A section (e.g., saml_advanced) with a trigger to show it when auth_type = saml
- Fields inside the section that also have their own trigger based on auth_type
- Set auth_type = saml, section and fields appear correctly
- Switch auth_type to something else, section header disappears, but an empty expanded