Skip to content

[5.x]: More than one default can be selected for Dropdown fields #15415

@MoritzLost

Description

@MoritzLost

What happened?

Description

When editing an existing Dropdown field, I can have more than one option selected as the default. After selecting a third option, the second one will be cleared out. And after deselecting the previously saved option, only one option is active at the time. But after reloading the page, I can select an additional default option, and save the field like that.

Screen.Recording.2024-07-25.at.16.51.56.mov

Steps to reproduce

  1. Create a radio field, define some options and select a default.
  2. Save and reload the page. Mark another option as default.

Expected behavior

Only one default option should be selectable.

Actual behavior

After a page reload, I can have two default options active at the same time.

Craft CMS version

5.2.8

PHP version

8.3

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions