Problem/Motivation

The 'none' option for select form elements is prepended to the options list in various forms.

Steps to reproduce

Proposed resolution

Render '-- Select --' option as #empty_option, see https://git.drupalcode.org/project/drupal/-/blob/main/core/lib/Drupal/Co...

Remaining tasks

  1. Write a merge request
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review

The merge request renders the '-- Select --' option as #empty_option

dieterholvoet’s picture

Status: Needs review » Reviewed & tested by the community

Tested, doesn't seem to make a difference in the UI so all good for me.

  • dieterholvoet committed c17aa5b9 on 1.0.x authored by idebr
    task: #3614217 Render '-- Select --' option as #empty_option
    
    By: idebr...
dieterholvoet’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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