diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-10-25 21:10:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-25 21:10:37 +0900 |
commit | 731ea4e3fb7250a28c55c664aff43459d83cdec1 (patch) | |
tree | 86a1e8e1e6e257d1537b3cd0ce12be0856a572a4 /actionview/app/assets | |
parent | 0beb22d6d15cb639c131bc135bc917112581ccd6 (diff) | |
parent | a5d80d4a1c4a41ec92985e34cac23bac0509e7fb (diff) | |
download | rails-731ea4e3fb7250a28c55c664aff43459d83cdec1.tar.gz rails-731ea4e3fb7250a28c55c664aff43459d83cdec1.tar.bz2 rails-731ea4e3fb7250a28c55c664aff43459d83cdec1.zip |
Merge pull request #30513 from y-yagi/fix_30444
Does not include disabled element in params
Diffstat (limited to 'actionview/app/assets')
-rw-r--r-- | actionview/app/assets/javascripts/rails-ujs/utils/form.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee b/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee index 5fa337b518..736cab08db 100644 --- a/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee +++ b/actionview/app/assets/javascripts/rails-ujs/utils/form.coffee @@ -10,7 +10,7 @@ Rails.serializeElement = (element, additionalParam) -> params = [] inputs.forEach (input) -> - return unless input.name + return if !input.name || input.disabled if matches(input, 'select') toArray(input.options).forEach (option) -> params.push(name: input.name, value: option.value) if option.selected |