Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
MoritzLost opened this issue Jul 25, 2024 · 2 comments
Closed

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

MoritzLost opened this issue Jul 25, 2024 · 2 comments
Labels

Comments

@MoritzLost
Copy link
Contributor

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

@brandonkelly
Copy link
Member

Thanks for reporting that! Fixed for the next Craft 4 and 5 releases.

@brandonkelly
Copy link
Member

Craft 4.10.7 and 5.2.9 are out with that fix. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants