Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Because it only adds itself to elements with .form-item or .form-wrapper classes. But submit uses .form-submit.
The patch adds .form-submit to that list... An alternative solution would be to add form-item to submit buttons too...
Comment | File | Size | Author |
---|---|---|---|
states_for_submit.patch | 1.23 KB | Berdir | |
Comments
Comment #1
rfaysubscribe
Comment #2
rfayComment #3
rfayWow, have to look where I'm typing.
@berdir, didn't you mention that select elements were affected as well?
Comment #4
rfayThis looks good to me.
#990460-1: Demonstrate submit button being hidden in #states example provides a patch to the #states example to demonstrate it.
Simple fix, I don't anticipate any side-effects.
Comment #5
webchickCommitted to HEAD. Thanks!