Skip to content

T1331089 - DateBox: Masked input works incorrectly after refocusing the editor with Tab when Microsoft Bopomofo IME is in Chinese Mode#34191

Merged
dmlvr merged 6 commits into
DevExpress:26_1from
dmlvr:26_1_T1331089
Jul 2, 2026
Merged

T1331089 - DateBox: Masked input works incorrectly after refocusing the editor with Tab when Microsoft Bopomofo IME is in Chinese Mode#34191
dmlvr merged 6 commits into
DevExpress:26_1from
dmlvr:26_1_T1331089

Conversation

@dmlvr

@dmlvr dmlvr commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@dmlvr dmlvr self-assigned this Jul 1, 2026
@dmlvr dmlvr marked this pull request as ready for review July 1, 2026 15:50
@dmlvr dmlvr requested a review from a team as a code owner July 1, 2026 15:50
Copilot AI review requested due to automatic review settings July 1, 2026 15:50

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.

Pull request overview

Improves DateBox masked-input behavior when using Microsoft IMEs (notably Windows Bopomofo / Chinese MS IME) by preserving the correct active date part across IME composition, refocus, and composition backspace scenarios, and adds regression tests to cover these cases.

Changes:

  • Updated DateBoxMask IME handling to remember “all-selected before composition” state and to treat deleteContentBackward/Forward during composition by reverting the active part instead of incorrectly resetting/clearing.
  • Added new DateBox mask tests covering IME composition selection quirks and composition backspace behavior (T1331089).
  • Tightened _focusInHandler event typings in internal TextEditor/TagBox code to use DxEvent<FocusEvent>.

Reviewed changes

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

File Description
packages/devextreme/testing/tests/DevExpress.ui.widgets.editors/datebox.mask.tests.js Adds regression tests for IME composition selection/backspace scenarios affecting DateBox mask behavior.
packages/devextreme/js/__internal/ui/text_box/text_editor.base.ts Updates _focusInHandler typing to use DxEvent<FocusEvent>.
packages/devextreme/js/__internal/ui/tag_box.ts Updates _focusInHandler typing to use DxEvent<FocusEvent>.
packages/devextreme/js/__internal/ui/date_box/date_box.mask.ts Implements IME-specific selection/backspace handling improvements for masked DateBox input.

@dmlvr dmlvr added this pull request to the merge queue Jul 2, 2026
Merged via the queue into DevExpress:26_1 with commit 004bb77 Jul 2, 2026
123 of 124 checks passed
@dmlvr dmlvr deleted the 26_1_T1331089 branch July 2, 2026 15:25
dmlvr added a commit to dmlvr/DevExtreme that referenced this pull request Jul 3, 2026
…he editor with Tab when Microsoft Bopomofo IME is in Chinese Mode (DevExpress#34191)
dmlvr added a commit to dmlvr/DevExtreme that referenced this pull request Jul 3, 2026
…he editor with Tab when Microsoft Bopomofo IME is in Chinese Mode (DevExpress#34191)

Co-authored-by: Ruslan Farkhutdinov <ruslan.farkhutdinov@devexpress.com>
Co-authored-by: Ruslan Farkhutdinov <rrafarkhutdinov@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants