diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d348de..def63d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [unreleased] - + +### Fixed + +- Fixed the `Tree cascade Dropdown` field so that it works when it is a required field in single-level responses + ## [1.1.0] - 2026-04-27 ### Add diff --git a/templates/tree_cascade_dropdown.html.twig b/templates/tree_cascade_dropdown.html.twig index b2eb1d5..e49b9fb 100644 --- a/templates/tree_cascade_dropdown.html.twig +++ b/templates/tree_cascade_dropdown.html.twig @@ -126,6 +126,7 @@ class="form-select af-tree-cascade-select" aria-label="{{ aria_label }}" data-af-tree-questions-id="{{ question.fields['id'] }}" + data-af-tree-field-name="{{ final_items_id_name }}" data-af-tree-ajax-limit="{{ ajax_limit_count }}" >