Skip to content

DateBox: Update time list items when value is changed while popup is closed (T1325614)#33153

Merged
marker-dao merged 1 commit intoDevExpress:26_1from
marker-dao:26_1_T1325614_datebox
Apr 3, 2026
Merged

DateBox: Update time list items when value is changed while popup is closed (T1325614)#33153
marker-dao merged 1 commit intoDevExpress:26_1from
marker-dao:26_1_T1325614_datebox

Conversation

@marker-dao
Copy link
Copy Markdown
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Apr 3, 2026
@marker-dao marker-dao changed the title DateBox: Update time list items when value is changed while popup is closed DateBox: Update time list items when value is changed while popup is closed (T1325614) Apr 3, 2026
@marker-dao marker-dao marked this pull request as ready for review April 3, 2026 12:41
@marker-dao marker-dao requested a review from a team as a code owner April 3, 2026 12:41
Copilot AI review requested due to automatic review settings April 3, 2026 12:41
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

This PR fixes DateBox’s pickerType: 'list' time strategy so that the time list’s underlying items are refreshed when value changes while the popup is closed, preventing stale date parts from being used on subsequent time selection.

Changes:

  • Updated the internal DateBox list strategy to refresh list items on renderValue() even when the popup is closed, while only updating selection/scroll when opened.
  • Added integration tests covering (1) preserving the updated date part after reopening and selecting a time and (2) refreshing list items after external value change while closed.
  • Adjusted an existing serialized-date test to re-query list items after reopening.

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.integration.tests.js Adds regression coverage for refreshing list items after closed-popup value changes and updates an existing test to avoid stale DOM references.
packages/devextreme/js/__internal/ui/date_box/m_date_box.strategy.list.ts Ensures list items are refreshed on value render even when closed; limits selection/scroll updates to the opened state.

@marker-dao marker-dao merged commit 4da19c5 into DevExpress:26_1 Apr 3, 2026
128 checks passed
@marker-dao marker-dao deleted the 26_1_T1325614_datebox branch April 3, 2026 13:02
sjbur pushed a commit to sjbur/DevExtreme that referenced this pull request May 5, 2026
…closed (T1325614) (DevExpress#33153)

Co-authored-by: marker dao ® <youdontknow@marker-dao.eth>
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.

3 participants