mathworks / mathworks/widgets-toolbox

DatetimeSelector ValueChanged callback does not include PreviousValue

Open
#77 1 comment 0 reactions 1 assignee View on GitHub

@rjackey is already working on this.

Since Mar 16, 2026.

enhancement
Dominant language
HTML
Stars
39
Forks
13
PR merge metrics
No merged PRs in 30d

Description

DatetimeSelector widget's protected methods: onDateEdited(), onTimeEdited(), and onTimeZoneChanged() do not include the previous value from the "evt" struct passed into them with the "evtOut" struct they then pass to the ValueChanged callback in App Designer.

Result is that the callback exposed within App Designer's Code View will always have "event.PreviousValue" equal "[ ]".

https://github.com/mathworks/widgets-toolbox/blob/4028f1911f357ab3fc1b70347c9e8929b23146ff/widgets/%2Bwt/DatetimeSelector.m#L316

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.