Cannot enable/disable radio group

Cannot enable/disable radio group

avatar

I can no longer enable or disable radio group dynamically. The switch Disabled works as expected, i.e. enabling or disabling the radio group initially.
The following code used to work in version 5.6.9 but does not work in 5.6.13. Selecting or deselecting the checkbox does not enable or disable the radio group RadioGroup1.

New-UDCheckBox -Id 'CheckBoxRadio' -Label 'Click to enable or disable radio buttons' -Checked:$false -Disabled:$false -OnChange {
$disableRadio = (Get-UDElement -Id 'CheckBoxRadio').Checked -eq $false

Set-UDElement -Id 'RadioGroup1' -Properties @{ 'disabled' = $disableRadio }
}

New-UDRadioGroup -Id 'RadioGroup1' -Content {
New-UDRadio -Label 'Option 1' -Value 'Option 1'
New-UDRadio -Label 'Option 2' -Value 'Option 2'
} -Value "Option 1" -Disabled:$false

All Comments (1)

avatar

@ilazovic I've converted this into a bug report. We'll update this case if we have some more information or have a resolution.

Adam Driscoll
PowerShell Expert and Developer at Devolutions