Skip to content

T1336404 - ColorBox - Clearing the value with the delete/backspace key converts it to the HSV format when applyValueMode is set to "instantly" - #35501

Merged
dmlvr merged 2 commits into
DevExpress:mainfrom
dmlvr:T1336404_26_2
Oct 6, 2026
Merged

dmlvr merged 2 commits into
DevExpress:mainfrom
dmlvr:T1336404_26_2

Conversation

@dmlvr

@dmlvr dmlvr commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dmlvr dmlvr self-assigned this Oct 6, 2026
Copilot AI balanced review requested due to automatic review settings October 6, 2026 09:42
@dmlvr
dmlvr requested a review from a team as a code owner October 6, 2026 09:42
@dmlvr dmlvr added the 26_2 label Oct 6, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Targeted source inspection confirms the clearing behavior and conditional test expectations, with no unresolved blocking findings.

Review effort: Balanced
Findings: None

What changed in this PR

Fixes ColorBox clearing in instant-apply mode so deleting the input does not restore a formatted color value.

Changes:

  • Normalizes empty strings to null when synchronizing the color palette.
  • Preserves empty values during palette updates.
  • Adds regression tests with alpha-channel editing enabled and disabled.
File Description
packages/​devextreme/​testing/​tests/​DevExpress.ui.widgets.editors/​colorBox.tests.js Tests clearing and palette reset in both alpha modes.
packages/​devextreme/​js/​__internal/​ui/​color_box/​color_box.ts Normalizes empty palette values and prevents unwanted value propagation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

- check the user-visible result (value, text, a single valueChanged) instead of the ColorView value
- add cases without color selecting, with a closed popup, option('value', '') and applyValueMode = useButtons
- add a guard that a color can be applied after clearing
Copilot AI balanced review requested due to automatic review settings October 6, 2026 11:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

The focused fix has relevant regression coverage and no supported blocking issues; tests were not executed.

Review effort: Balanced
Findings: None

@dmlvr
dmlvr enabled auto-merge October 6, 2026 12:43
@dmlvr
dmlvr disabled auto-merge October 6, 2026 12:45
@dmlvr
dmlvr added this pull request to the merge queue Oct 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 6, 2026
@dmlvr
dmlvr added this pull request to the merge queue Oct 6, 2026
Merged via the queue into DevExpress:main with commit 264d03f Oct 6, 2026
187 of 190 checks passed
@dmlvr
dmlvr deleted the T1336404_26_2 branch October 6, 2026 15:19
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.

3 participants