pretty new to Drupal. I've been using the Webforms module and have come across a troubling issue with interactions between the checkbox element, and the advanced_address and advanced_telephone webform elements.
If the advanced element has a condition to become disabled based on the checkbox value the whole page will become disabled when the condition is met. Does anyone have any tips also is it advisable to submit an issue ticket?
(Webform v6.2.7 Drupal v10.2.5).
to reproduce:
On any webform add both an advanced_address element and a checkbox element. Add the states condition on the advanced_address element:
disabled: ':input[name="checkbox_machine_name"]': checked: true
Here is a minimal example YAML config of a webform that has the issue:
test_page:
'#type': wizard_page
'#title': 'test page'
checkbox:
'#type': checkbox
'#title': checkbox
advanced_element:
'#type': address
'#title': 'advanced element'
'#states':
disabled:
':input[name="checkbox"]':
checked: true
extra_element_for_example:
'#type': textfield
'#title': 'extra element for example'