Skip to content

Conversation

@leekelleher
Copy link
Member

Description

Fixes #20029.

If a dropdown property-editor is not marked as mandatory and is in single-mode, then an empty option is added to the top of the dropdown, so that the value can be unset.

This doesn't apply to multiple-mode, as values can already be deselected.

Fixes #20029.

If a dropdown property-editor is not marked as mandatory
and is in single-mode, then an empty option is added to
the top of the dropdown, so that the value can be unset.

This doesn't apply to multiple-mode, as values can be deselected.
Copilot AI review requested due to automatic review settings September 8, 2025 11:19
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds an empty option to non-mandatory single-mode dropdown property editors to allow users to unset values, fixing issue #20029. This enhancement improves usability by providing a clear way to remove selections when the field is optional.

  • Adds an empty option to the top of dropdown lists for non-mandatory, single-mode dropdowns
  • Ensures the empty option is only added when appropriate (not mandatory and not multiple selection)

Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested out and works great, thanks @leekelleher, glad we've got this one sorted.

@AndyButland AndyButland merged commit e30916d into main Sep 9, 2025
28 checks passed
@AndyButland AndyButland deleted the v16/bugfix/dropdown-empty-option branch September 9, 2025 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Umbraco.DropDown.Flexible doesn't allow unset values (null / empty)

3 participants