Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2010 at 18:24 UTC
Updated:
20 Dec 2010 at 16:20 UTC
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!