Selection not properly updated on multi-page view when using Ctrl+Shift

Created on 11 December 2018, over 6 years ago
Updated 29 July 2023, almost 2 years ago

Problem/Motivation

When you use ctrl+shift to select multiple rows in a multi-page table view the selection is not reflected in the "Selected X items in this view". Also the seelction is not properly taken to the next page.

You can test this by following the steps:

  • Create a multi-paged view of type table (see attachment for example) and views bulk operation field (e.g. with block and unblock user actions)
  • Go to this view, use shift to select multiple items, e.g. 3
  • The fieldset on the page says "Selected 2 items in this view" while you expect 3.
  • When you do the action it executes it on 3 items.

Another scenario:

  • Select 3 users again using the shift method
  • Go to the next page, select 1 more user.
  • See that the fieldset says "Selected 3 items in this view" while you expect 4.
  • When you do the action it executes on 3 items.

Proposed resolution

Ideally this should work as this module uses the core library drupal.tableselect which supports this as well. When using shift to select multiple items this should be reflected in the fieldset on the page, but also while doing the action.

🐛 Bug report
Status

Fixed

Version

4.2

Component

User interface

Created by

🇳🇱Netherlands jaapjan

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024