Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This issue is similar to #2226901: Decrease JS specificity to allow "button" elements but addresses a different issue. There are still parts in the JS file hierarchical_select/hierarchical_select.js
that specifically expects an input[type=submit]>
. If there is a theme (e.g. Bootstrap) that replaces the <input>
with <button>
fields they will not be disabled when the hierarchical selects is being rebuilt.
There are two functions that I think should be fixed:
Drupal.HierarchicalSelect.disableForm
Drupal.HierarchicalSelect.enableForm
Comment | File | Size | Author |
---|---|---|---|
#2 | buttons_are_not_disabled-2611920-1.patch | 1.98 KB | madmanmax |
button_submit_20151109.png | 77.59 KB | madmanmax | |
input_submit_20151109.png | 60.01 KB | madmanmax |
Comments
Comment #2
madmanmax CreditAttribution: madmanmax commentedComment #3
deepakaryan1988#2 works for me!!
:)
Comment #5
stefan.r CreditAttribution: stefan.r commentedCommitted, thanks!