Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
AFAICT there's no longer any point in the #select_type attribute.
On D8, #type can't be just " '#type' => 'select_or_other',", is has to be one of 'select_or_other_buttons' or 'select_or_other_list'. So the select type is already determined by the #type attribute of the element.
Comments
Comment #2
legolasboWe're not actively developing against 8.x-3.x.