- Issue created by @joelpittet
- πΊπΈUnited States smustgrave
Possible to get a test case showing the issue please
π
[PP-1] #states attribute does not work on #type datetime
Postponed
has >10 years of comments, multiple postponed solutions, and an MR that is now stale.
This issue proposes an *alternate implementation* that avoids the blockers
identified there.
#states do not work with 'datetime' form elements:
datetime
element the way details
elements doTBD
#states actually works on datetime form elements.
While trying to create a custom field widget containing a "datetime" form element, I discovered that the #states attribute does not work on it.
Some states can be achieved with a workaround: put the datetime element in a container, and put the #states on the container. But this is obviously no clean fix, and it doesn't work for all states. (Works for "visible" for example, but not for "required".)
I was not able to figure out why this is not working, but I noticed that there have been a lot of issues regarding the #states attribute in the issue tracker. Most of them for were for specific elements like submit buttons, select elements with multiple values, ...
Needs review
11.0 π₯
theme system
It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.
Possible to get a test case showing the issue please