-
Notifications
You must be signed in to change notification settings - Fork 36
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
3010 date input extend events #3345
base: develop
Are you sure you want to change the base?
Conversation
View your canary branch deployment here: https://mi6.github.io/ic-ui-kit/branches/3010-date-input-extend-events/canary-web-components |
Cypress visual tests failed. |
99cf69f
to
ef9d38d
Compare
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.
Looks good overall but have just found a couple of issues (while testing in the “icChange event” story):
-
If you only type in part of the date, e.g. the day, and then delete it by either pressing backspace or clicking the clear button, the icChange event does not get emitted to say that that section is now empty again
-
The sections sometimes get set to
null
and other times an empty string. E.g. if you only type in the day, the month and year sections show as an empty string in the icChange event. But if you type in only the year and then click the clear button, the icChange event gets emitted saying that the day and month arenull
. I think it should be consistent i.e. either they only ever get emitted asnull
when cleared / deleted, or only as an empty string (maybenull
would be best to match thevalue
behaviour?)
89b4a14
to
0f200c8
Compare
modified cypress test to reflect new icChange object
0f200c8
to
340380f
Compare
just wondering if changing this to now emit for each field is going to cause developers issues? previously they would get 1 icChange event once the date was complete\the field blurred, but now they will be getting multiple as the user types & will need to adjust their code to account for this eg user than types 02 in month field: |
Summary of the changes
Added a dateObject field to IcChange return detail, IcChange is now emitted after every section of input date is completed
Related issue
#3010
Checklist
General
Testing
Accessibility
Resize/zoom behaviour
System modes
Testing content extremes