Open mueller-ma opened 4 months ago
Is it only when the current state is NULL ?
No, this issue is independent of the state.
Strange, I am sure time picker was tested when initially implemented.
How is defined MyDateTimeItem ?
A DateTime Item without any metadata set, only the title. The title doesn't contain a value format pattern.
A DateTime item without metadata will default to a datetime-local HTML5 input type. Firefox (and Safari) don’t show time inputs for that type (see https://bugzilla.mozilla.org/show_bug.cgi?id=1726108). You can set time with inputHint time, but that obviously does not show the date. It is possible to show 2 fields, one with inputHint date, another one with time. Setting them independently should preserve the previously set date/time part.
so unless someone is willing to develop a very specific datetime entry widget for BasicUI, I think we have to live with the browser constraint. I therefore suggest to close this as will not fix.
You can set time with inputHint time, but that obviously does not show the date.
I already did, but no timepicker is shown.
Basic UI follows Material Design, so I guess it uses some library for that? Maybe that library also includes a time picker? If not, I found that one, which might be easy to integrate in Basic UI: https://www.npmjs.com/package/ngx-material-timepicker
Basic UI follows Material Design, so I guess it uses some library for that? Maybe that library also includes a time picker? If not, I found that one, which might be easy to integrate in Basic UI: https://www.npmjs.com/package/ngx-material-timepicker
When developing this I searched for date/time pickers. Material Design Lite does not have one by default. The one you link requires Angular. In mainUI, we have the f7 framework available which also has one. I didn’t find an easy and universal candidate for BasicUI Material Design Lite.
For reference: https://github.com/google/material-design-lite/issues/1695
What about https://github.com/puranjayjain/md-date-time-picker ?
An implementation of Material Design Picker components in vanilla CSS, JS, and HTML
It shouldn't have dependencies on libraries.
Looks promising. I may have a look when I find some time.
Which UI are you reporting an issue for?
The problem
There's no timepicker in Firefox as there's in Chrome:
Chrome:
Firefox:
I'm using this sitemap definition:
Expected behavior
It should be similiar in both browsers.
Your environment
Browser console
no output in the console.