Issue #1263302 by andypost, peterpoe: Fixed States API disabled state handler filters out nonexistent class 'form-element'.
parent
ea1280d77a
commit
59331e7853
|
@ -504,8 +504,8 @@ $(document).bind('state:disabled', function(e) {
|
|||
if (e.trigger) {
|
||||
$(e.target)
|
||||
.attr('disabled', e.value)
|
||||
.filter('.form-element')
|
||||
.closest('.form-item, .form-submit, .form-wrapper').toggleClass('form-disabled', e.value);
|
||||
.closest('.form-item, .form-submit, .form-wrapper').toggleClass('form-disabled', e.value)
|
||||
.find('select, input, textarea').attr('disabled', e.value);
|
||||
|
||||
// Note: WebKit nightlies don't reflect that change correctly.
|
||||
// See https://bugs.webkit.org/show_bug.cgi?id=23789
|
||||
|
|
Loading…
Reference in New Issue