-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
# CX-17328 - fix(release): update event flow for date picker #1861
# CX-17328 - fix(release): update event flow for date picker #1861
Conversation
Events need to propogate to the UI impl on blank values for dates.
Events need to propogate to the UI impl on blank values for dates.
if (this.value && changedProperties.has("value")) { | ||
this.parseValueForVisuals(this.value); | ||
if (changedProperties.has("value")) { | ||
if (this.value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again here. To tell the UI about the blank value we need to not bail out here
} | ||
else | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be done in this manner as typescript won't allow the use of this.value without the check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The formatting on the code is updated since this commit
Events need to propogate to the UI impl on blank values for dates.
Events need to propogate to the UI impl on blank values for dates. So that the UI can respond appropriately.
Description
The if statement would ignore blank values, and the method flow would propogate the previous value, which is then ignored by DateTimePicker.ts in it's updated flow.
Related Issue
Motivation and Context
Makes sure any UI that implements this can respond if required to a blank value entering the input field for the date picker.
How Has This Been Tested?
Manually(Sandbox) and in tests.
Screenshots:
Before (If applicable):
After:
Types of changes
Checklist: