I found that only the label was being displayed when selecting the single on/off box.

The problem is that the ['#theme'] is being set when the radio for a boolean field is being changed to a checkbox. The problem is that the theme for the checkbox is being set to checkbox instead of "input__theme".

I also found that removing this ['#theme'] also works as the default theme is not being set.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gordon created an issue. See original summary.

gordon’s picture

Assigned: Unassigned » gordon
Status: Active » Needs review
FileSize
981 bytes
nikathone’s picture

Patch in #2 works for me +1 for RTBC. Using "drupal/better_exposed_filters": "^3.0@alpha" and applying it with composer and cweagans/composer-patches

akozma’s picture

+1 for patch #2
Tested with "drupal/better_exposed_filters": "3.x-dev" applying it with composer and cweagans/composer-patches

  • mikeker committed f0067bc on 8.x-3.x authored by gordon
    Issue #2856856 by gordon: Not displaying checkbox when using single on/...
mikeker’s picture

Status: Needs review » Fixed

@gordon, Thank you for the bug report and patch! And thank you to the reviewer on this issue.

Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.