Open klonos opened 9 months ago
@klonos many thanks for creating this issue.
The big question is: how to continue here. Obviously the library's dead. Fork? Deprecate?
This little library is used to enter times, often in combination with the jquery date picker. It's a bit of an annoying library that confuses people - I wouldn't mind if it went away. What does D9/10 use in its place?
@argiepiano personally, I also avoid that library and wouldn't mind if it were gone, but that's not really "backwards compatible". :wink:
No idea, which discussions happened in Drupal-land re that. They usually don't hesitate to ditch old stuff, and only have html5 datetime elements.
I was looking at https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time in order to try to figure out the advantages of using this jQuery plugin over what vanilla HTML5 offers. It seems that the main thing is support for mouse wheel and spinner right?
@klonos I think, the point here is, that Backdrop still ships with old-school date fields (actually input type text). And these date fields can use that jQuery plugin to add "convenience" (or confusion). That's why this dry-aged library's still around.
Note that core does provide html5 date(time) elements via form API, and the widget for fields, we just didn't rip out the old (type text) ones.
Splitting this task off of #6248, where this was brought up by @argiepiano: