[change request][Checkbox-group/ChoiceGroupMixin]: including selected disabled options in value #1417
-
Hi all! we're using Lion
This is caused by explicitly filtering out disabled options on the ChoiceGroupMixin _getCheckedElements() {
// We want to filter out disabled values by default
return this.formElements.filter(el => el.checked && !el.disabled);
} As a native single checkbox can be both disabled and checked at the same time, keeping its checked validity... wouldn't it be beneficial to edit that method to include every checked children option into the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The method _getCheckedElements is protected, so you can override it in your extension. The reason we filter out disabled, is because typically speaking disabled options are not "interesting" to the app to read out, because we usually just show the disabled option to the user for the sake of being transparent. I remember this point was a little bit contentious, whether we should filter out disabled options by default or not, back when we discussed this, at least a year ago :P but for the extension, feel free to override :)! |
Beta Was this translation helpful? Give feedback.
The method _getCheckedElements is protected, so you can override it in your extension.
The reason we filter out disabled, is because typically speaking disabled options are not "interesting" to the app to read out, because we usually just show the disabled option to the user for the sake of being transparent.
I remember this point was a little bit contentious, whether we should filter out disabled options by default or not, back when we discussed this, at least a year ago :P but for the extension, feel free to override :)!