#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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.7.5 |
| Component: | Administration | Version: | 4.7.3 |
| Severity: | normal | Keywords: | has-patch fixed-major |
| Cc: | Focuses: | ui, javascript |
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
@
10 years ago
- Component General → Administration
- Focuses ui administration added
- Milestone Awaiting Review → 4.7.4
#3
@
10 years ago
- Focuses javascript added; administration removed
- Keywords needs-patch added
- Owner set to
- Status new → assigned
#5
@
10 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
@
10 years ago
- Keywords fixed-major added
- Resolution fixed
- Status closed → reopened
Reopening for 4.7.4 consideration.
This ticket was mentioned in Slack in #core by swissspidy. View the logs.
9 years ago
#12
@
9 years ago
- Milestone 4.7.4 → 4.7.5
- Resolution fixed
- Status closed → 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?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I can confirm this.
Related change in 4.7.3: #39739.
See also #39842.