-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
DMC Date Time Picker Dropping Miliseconds when set by A button #371
Comments
hi @sssaha |
@sssaha The date is converted to datestring here and it excludes the milliseconds https://github.com/snehilvj/dash-mantine-components/blob/master/src/ts/utils/dates.ts#L15
In the
We could probably add a new prop |
Also on that note - will it be possible to keep the timeformat of the internal timeinput popover to be the same as the defined value format? It is really confusing for the user to have different time format |
Can you elaborate on this? Not exactly sure what you mean. However, if you are referring to the time input component, it’s just an html.Input and currently the format is dependent on the browser. Any additional features like formatting this input would have to be added to the upstream Mantine component. Maybe you could do a feature request there? |
I went through the comment in mantine and it seems like this is part of HTML5 and can not be changed. |
Can you say more about this? It could be helpful to provide some code for what you tried and what worked (or didn't). Thanks for looking into this :-) |
I have a DMC Datetimepicker which in the example is initialized with the current datetime. When done - it retains the milisecond. I also have a button that can then set the time. But doing this way - it seems like the value does not retain the milisecond anymore..
MRE:
During First Load
After pressing button
The text was updated successfully, but these errors were encountered: