DYN-4783: Align invalid input handling for Number, Sliders, and DateTime - #17281
DYN-4783: Align invalid input handling for Number, Sliders, and DateTime#17281ivaylo-matov wants to merge 7 commits into
Conversation
There was a problem hiding this comment.
See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-4783
after sonarQube's comment
|
|
sonarQube is flagging Both methods use XAML instance fields ( |
|
|



Purpose
This PR aims to address DYN-4783 (Do not allow non integer input in Integer Slider node).
The original ticket asked to reject non-integer input on the Integer Slider. After discussion with the team, we aligned invalid-input handling across the related input nodes (Number, Number Slider, Integer Slider, and DateTime) so they share the same behavior as the Number node.
When the user types an invalid value:
A subsequent valid commit clears the Error bubble and updates the value. Undo after a valid -> invalid sequence restores the previous valid value and clears the Error bubble. Replacing one invalid input with another shows only the latest error message.
Key changes:
DateTimebind throughDynamoTextBoxwith explicitTwoWaybindings and validationUpdateValueCoreand on deserialize/undoThis is 4.3 work and is not a priority for review.
Declarations
Check these if you believe they are true
Release Notes
Number, Number Slider, Integer Slider, and DateTime now show an error and keep the last valid value when invalid input is typed.
Reviewers
@DynamoDS/eidos
@jasonstratton
@johnpierson
FYIs
@dnenov
@jnealb