diff options
author | Willian Gustavo Veiga <beberveiga@gmail.com> | 2019-07-25 16:07:11 -0300 |
---|---|---|
committer | Willian Gustavo Veiga <beberveiga@gmail.com> | 2019-07-25 16:07:11 -0300 |
commit | c3e786fc4822017095b605cabfb5ee55d21389b9 (patch) | |
tree | 6f9afb399662dc464a7853725d0235687cf0b3fc | |
parent | b1c27c059c88642aaf4a0c486320c03de4f165f6 (diff) | |
download | rails-c3e786fc4822017095b605cabfb5ee55d21389b9.tar.gz rails-c3e786fc4822017095b605cabfb5ee55d21389b9.tar.bz2 rails-c3e786fc4822017095b605cabfb5ee55d21389b9.zip |
Issue #36728 - Inputs inside disabled fieldset are not submited on remote: true forms
-rw-r--r-- | actionview/app/assets/javascripts/rails-ujs/utils/form.coffee | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee b/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee index 736cab08db..9e11bfa7ed 100644 --- a/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee +++ b/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee @@ -11,6 +11,7 @@ Rails.serializeElement = (element, additionalParam) -> inputs.forEach (input) -> return if !input.name || input.disabled + return if input.closest('fieldset[disabled]') if matches(input, 'select') toArray(input.options).forEach (option) -> params.push(name: input.name, value: option.value) if option.selected |