Closed (won't fix)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Nov 2012 at 14:56 UTC
Updated:
29 Jul 2014 at 21:28 UTC
If a form #type is set to "hidden" then it is not disabled using #state disabled. I tested changing the #type to textfield and it worked fine.
The input should be disabled even if it's #type is set to hidden.
(not sure how to make this change on code)
File: misc/states.js
Comments
Comment #1
andypost@Mac_Weber input type hidden does not support disabled property by it's nature before html5 http://www.w3.org/TR/html-markup/input.hidden.html
See http://www.w3.org/TR/html401/interact/forms.html#h-17.12
So this issue only about D8 that supports html5
Comment #2
nod_tag
Comment #3
mac_weber commented@andypost There is no difference betwen HTML 4.01 to HTML5.
source:http://www.w3schools.com/tags/att_input_disabled.asp
Comment #4
nod_That was easy :)
Comment #4.0
nod_Better description