Skip to content

DateBox: Fix validation message not cleared when masked date returns to valid range (T1326750)#33356

Merged
r-farkhutdinov merged 2 commits intoDevExpress:26_1from
r-farkhutdinov:26_1_T1326750
Apr 20, 2026
Merged

DateBox: Fix validation message not cleared when masked date returns to valid range (T1326750)#33356
r-farkhutdinov merged 2 commits intoDevExpress:26_1from
r-farkhutdinov:26_1_T1326750

Conversation

@r-farkhutdinov
Copy link
Copy Markdown
Contributor

No description provided.

@r-farkhutdinov r-farkhutdinov self-assigned this Apr 20, 2026
Copilot AI review requested due to automatic review settings April 20, 2026 13:12
@r-farkhutdinov r-farkhutdinov requested a review from a team as a code owner April 20, 2026 13:12
Copy link
Copy Markdown
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

Fixes a DateBox mask-validation edge case where an internal (editor-specific) validation error could persist after the user returns the masked date back into the allowed min/max range.

Changes:

  • Added a regression test that reproduces the “out of range → back in range” scenario for masked date editing (T1326750).
  • Updated DateBoxMask._fireChangeEvent() to also trigger a change event when the editor is currently invalid due to an editor-specific validation error, even if the underlying value is not “dirty”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js Adds a regression test covering validity toggling when changing a masked date out of range and back.
packages/devextreme/js/__internal/ui/date_box/date_box.mask.ts Ensures change is fired to re-run internal validation when isValid=false with validationError.editorSpecific, even if the value hasn’t changed.

marker-dao
marker-dao previously approved these changes Apr 20, 2026
Comment thread packages/devextreme/js/__internal/ui/date_box/date_box.mask.ts Outdated
Copy link
Copy Markdown
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@r-farkhutdinov r-farkhutdinov merged commit e301f33 into DevExpress:26_1 Apr 20, 2026
107 checks passed
r-farkhutdinov added a commit to r-farkhutdinov/DevExtreme that referenced this pull request Apr 20, 2026
…to valid range (T1326750) (DevExpress#33356)

Co-authored-by: Ruslan Farkhutdinov <ruslan.farkhutdinov@devexpress.com>
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