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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alloyroger created an issue. See original summary.

audioroger’s picture

Make patch to remove 'input' from selectors so add/remove group buttons work in Bootstrap and child themes.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Kristen Pol’s picture

Version: 8.9.x-dev » 9.1.x-dev
Issue tags: +Needs reroll

If this is still relevant, it needs a reroll for 9.1.x.

Kristen Pol’s picture

Status: Needs review » Needs work
Kristen Pol’s picture

Actually, jQuery is phased out from core so maybe this should be a "won't fix".

anushrikumari’s picture

Rerolled patch for 9.1.x

Lendude’s picture

Assigned: audioroger » Unassigned
Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll

We 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.

Status: Reviewed & tested by the community » Needs work
ravi.shankar’s picture

Status: Needs work » Reviewed & tested by the community

Looks like the unrelated test failure, so back to RTBC as per comment #9.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 7274817 and pushed to 9.1.x. Thanks!

  • alexpott committed 7274817 on 9.1.x
    Issue #3013216 by alloyroger, anushrikumari, Kristen Pol, Lendude:...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.