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.
Problem/Motivation
views-admin.js viewsUi.RearrangeFilterHandler addGroupButton & removeGroupButtons variable jQuery selectors are too specific for all themes. The Bootstrap theme turns the inputs referenced in the selectors to buttons which breaks the add/remove group functionality.
Proposed resolution
Remove 'input' from the jQuery selectors.
Comments
Comment #2
audioroger CreditAttribution: audioroger at Alloy Magnetic commentedMake patch to remove 'input' from selectors so add/remove group buttons work in Bootstrap and child themes.
Comment #5
Kristen PolIf this is still relevant, it needs a reroll for 9.1.x.
Comment #6
Kristen PolComment #7
Kristen PolActually, jQuery is phased out from core so maybe this should be a "won't fix".
Comment #8
anushrikumari CreditAttribution: anushrikumari at OpenSense Labs commentedRerolled patch for 9.1.x
Comment #9
LendudeWe have test coverage for both these buttons in
\Drupal\Tests\views_ui\FunctionalJavascript\FilterCriteriaTest
, so the tests coming back green means we aren't breaking anything in a clean setup.Looks good.
Comment #11
ravi.shankar CreditAttribution: ravi.shankar at OpenSense Labs commentedLooks like the unrelated test failure, so back to RTBC as per comment #9.
Comment #12
alexpottCommitted 7274817 and pushed to 9.1.x. Thanks!