Skip to content

Commit c3e786f

Browse files
committed
Issue rails#36728 - Inputs inside disabled fieldset are not submited on remote: true forms
1 parent b1c27c0 commit c3e786f

File tree

1 file changed

+1
-0
lines changed
  • actionview/app/assets/javascripts/rails-ujs/utils

1 file changed

+1
-0
lines changed

actionview/app/assets/javascripts/rails-ujs/utils/form.coffee

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Rails.serializeElement = (element, additionalParam) ->
1111

1212
inputs.forEach (input) ->
1313
return if !input.name || input.disabled
14+
return if input.closest('fieldset[disabled]')
1415
if matches(input, 'select')
1516
toArray(input.options).forEach (option) ->
1617
params.push(name: input.name, value: option.value) if option.selected

0 commit comments

Comments
 (0)