Open GCHQ-Developer-530 opened 1 week ago
View your branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1970-canary-date-comp-playgrounds/canary-web-components View your React branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1970-canary-date-comp-playgrounds/canary-react View your NextJs branch deployment here: https://mi6.github.io/ic-ui-kit/branches/1970-canary-date-comp-playgrounds/nextjs
There seems to be a problem where, if you have a value set, changing the date-format clears the field. I'd expect it to update the value, but that should be a new ticket as it doesn't support it at the moment (would need changes to input & picker i think)
There seems to be a problem where, if you have a value set, changing the date-format clears the field. I'd expect it to update the value, but that should be a new ticket as it doesn't support it at the moment (would need changes to input & picker i think)
I think the blanking of the value may be a bigger issue, than just changing the date format. it seems to be that, if you have entered a value in the picker\input and then change a storybook control eg, disabled, then it blanks the value. I think this is because it re-uses the value from the storybook control.
you can keep them in sync with https://storybook.js.org/docs/addons/addons-api#useargs see checkbox playground for an example
Ah brilliant, thank you. I've updated it
Summary of the changes
Add playground stories for date input and date picker
Ticket already created for startOfWeek not updating - https://github.com/mi6/ic-ui-kit/issues/1877
Related issue
Part of #1970
Checklist
General
Testing
Accessibility
Resize/zoom behaviour
System modes
Testing content extremes