"Empty" state (also "filled" as it is derivative from "empty") doesn't work for date field with datepicker plugin, becuase "empty" state has keyup trigger only. But datepicker doesn't invoke keyup, only change only.
So I think we need to add change trigger to "empty" state as it has done for state "value".

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

kalistos created an issue. See original summary.

kalistos’s picture

kalistos’s picture

Backport to 8.3

andypost’s picture

Issue tags: +JavaScript, +Needs tests
andypost’s picture

Component: theme system » datetime.module
mpdonadio’s picture

Status: Active » Needs work
Issue tags: +Needs manual testing

@kalistos, are you seeing this with the native datepicker (eg, Chrome) or the jQuery UI polyfill (eg, Firefox). TBH, I am not sure which JSTB will use off the top of my head, but the other will require manual testing. For the time being, let's just work on the 8.4 version, and then backport when we are done (been seeing confusion on other issues where people post 8.3 and 8.4 intermixed).

kalistos’s picture

@mpdonadio, I have this issue with jQuery UI datepicker, which integrated in Drupal core:
core/assets/vendor/jquery.ui/ui/datepicker-min.js

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.