#40056 closed defect (bug) (fixed)
Shift-click to select a range of checkboxes isn't working anymore since 4.7.3 update
Reported by: | ZehrGut | Owned by: | afercia |
---|---|---|---|
Milestone: | 4.7.5 | Priority: | normal |
Severity: | normal | Version: | 4.7.3 |
Component: | Administration | Keywords: | has-patch fixed-major |
Focuses: | ui, javascript | Cc: |
Description
Hello!
Shift-click to select a range of check-boxes in admin area isn't working anymore since 4.7.3 update. It worked perfectly before this 4.7.3 update.
Thanks in advance!
Attachments (1)
Change History (17)
#2
@
8 years ago
- Component changed from General to Administration
- Focuses ui administration added
- Milestone changed from Awaiting Review to 4.7.4
#3
@
8 years ago
- Focuses javascript added; administration removed
- Keywords needs-patch added
- Owner set to afercia
- Status changed from new to assigned
#5
@
8 years ago
- Keywords has-patch added; needs-patch removed
So, before [38703] the original selector was:
$('tbody').children().children('.check-column').find(':checkbox').click( function(e) {
Because of #37973 this event needs to be delegated, and the selector was changed in [38703], then amended in [38706]:
$body.on( 'click', 'tbody .check-column :checkbox', function( event ) {
However, to support the edge case of nested tables (see #39739), it was changed again in [40118]:
$body.on( 'click', 'tbody > .check-column :checkbox', function( event ) {
The selector above doesn't actually select anything... instead it should be:
$body.on( 'click', 'tbody > tr > .check-column :checkbox', function( event ) {
which, starting from tbody
, selects the children tr
then the children .check-column
and then all the :checkbox
and should finally be equivalent to the original selector.
#7
@
8 years ago
- Keywords fixed-major added
- Resolution fixed deleted
- Status changed from closed to reopened
Reopening for 4.7.4 consideration.
This ticket was mentioned in Slack in #core by swissspidy. View the logs.
8 years ago
#12
@
7 years ago
- Milestone changed from 4.7.4 to 4.7.5
- Resolution fixed deleted
- Status changed from closed to reopened
@femur thanks! Hm, seems this is working on trunk but not on 4.7.4, not sure the right commit was back-ported. @swissspidy any insight?
I can confirm this.
Related change in 4.7.3: #39739.
See also #39842.