- 🇬🇧United Kingdom catch
Would be good to add some test coverage here, both to validate a fix and to show that the parent issue didn't help.
- 🇫🇮Finland Tuuuukka
When you submit the checkboxes widget with only disabled options checked, the value callback function gets nothing for input. If you check/select an enabled option too, the disabled ones keep their values also.
The input is checked here: https://git.drupalcode.org/project/drupal/-/blob/11.x/core/lib/Drupal/Co.... As stated, with only disabled options checked, the $input variable is empty, so it defaults to using $element['#default_value'], but that's empty too, so it all ends up returning an empty array.