LearnNewsExamplesServices
Frontmatter
id5594
titlemodel.Component: data property setter => getting the same value for dates
stateClosed
labels
enhancement
assigneestobiu
createdAtJul 20, 2024, 6:35 PM
updatedAtJul 20, 2024, 6:35 PM
githubUrlhttps://github.com/neomjs/neo/issues/5594
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 20, 2024, 6:35 PM

model.Component: data property setter => getting the same value for dates

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jul 20, 2024, 6:35 PM

when accessing a VM date prop, we get the same instance instead of a copy.

so, when changing it, oldValue & value would stay the same and onDataPropertyChange() won't get executed.

concrete use case: inside the calendar widget, the arrow buttons next to the "Today" button no longer work.

tobiu added the enhancement label on Jul 20, 2024, 6:35 PM
tobiu assigned to @tobiu on Jul 20, 2024, 6:35 PM
tobiu referenced in commit 315d009 - "model.Component: data property setter => getting the same value for dates #5594" on Jul 20, 2024, 6:35 PM
tobiu closed this issue on Jul 20, 2024, 6:35 PM