Skip to content

[2.x] fix: preserve empty color in ColorPreviewInput instead of coercing to black - #4856

Merged
imorland merged 1 commit into
2.xfrom
im/color-input-empty-not-black
Jul 29, 2026
Merged

[2.x] fix: preserve empty color in ColorPreviewInput instead of coercing to black#4856
imorland merged 1 commit into
2.xfrom
im/color-input-empty-not-black

Conversation

@imorland

Copy link
Copy Markdown
Member

Fixes #4809

Clearing a previously-set tag color and saving stored #000000 instead of an empty value, because ColorPreviewInput's blur handler coerced any non-hex value — including an empty field — to black. An empty field is now left empty; a deliberately-entered #000000 is still kept.

@imorland
imorland requested a review from a team as a code owner July 29, 2026 19:25
@imorland imorland changed the title fix: preserve empty color in ColorPreviewInput instead of coercing to black [2.x] fix: preserve empty color in ColorPreviewInput instead of coercing to black Jul 29, 2026
@imorland imorland added this to the 2.0.0-rc.6 milestone Jul 29, 2026
@imorland
imorland merged commit fc12eb1 into 2.x Jul 29, 2026
25 checks passed
@imorland
imorland deleted the im/color-input-empty-not-black branch July 29, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The tag color doesn't reset to the default color

1 participant