-
Notifications
You must be signed in to change notification settings - Fork 100
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
DateInput2 #1556
DateInput2 #1556
Conversation
Preview URL: https://1556--preview-instui.netlify.app |
04ec792
to
4b5ad11
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.
- when I enter an invalid date in the first example the invalid date message flashes for a second but then disappears
- as I mentioned before it should be nice if I could move with arrows in calendar dates, but as I understand this needs to happen in the Calendar component.
Mz biggest concern that its using moment
which is an out of date library. if we switch to a more modern lib, it will be a breaking change for our users.
We should investigate how a polyfill for the new Temporal API can replace moment for us.
4b5ad11
to
6927924
Compare
|
fbe250e
to
966a08c
Compare
|
||
const handleDateSelected = ( | ||
dateString: string, | ||
_momentDate: any, // real type is Moment but used any to avoid imporing the moment lib |
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.
typo: imporing
When I set |
nice catch! the icon wasn't changing size with the input so it prevented it to become small, now it's fixed |
966a08c
to
123d75e
Compare
123d75e
to
544a761
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.
nice job!
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, very nice work!
FYI we have a @isWIP
tag that you can use in our markdown files that wont make them appear in the sidebar (but you can see it by typing the URL)
good to know but I'm not sure if we want that since the component can more or less replace most of the current uses of the original DateInput and we explicitly recommend it in the docs |
544a761
to
608dc2d
Compare
test plan:
Closes: INSTUI-4097