The cell.active_table_sort in table.html.twig has no effect

Created on 27 October 2014, about 10 years ago
Updated 20 April 2024, 8 months ago

Problem/Motivation

While reviewing #1821454: [theme_table] 'active' class added to wrong column , I detected that the twig variable cell.active_table_sort used in table.html.twig is affected by a combination of defects:

  • The active class is set by tablesort_header().
  • The cell.active_table_sort twig variable is never set for header cells. However, in the twig template it is only ever checked when processing the header section (for cell in header).
  • In contrast the cell.active_table_sort is set for cells in rows and footer, but in the twig template it is never checked when processing rows or footer section

Proposed resolution

Either remove cell.active_table_sort or fix it.

Remaining tasks

User interface changes

API changes

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component
Theme 

Last updated 38 minutes ago

Created by

🇨🇭Switzerland znerol

Live updates comments and jobs are added and updated live.
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.

  • 🇳🇿New Zealand quietone

    There has been activity here for 8 years. So, is this problem still relevant?

    Since we need more information to move forward with this issue, I am setting the status to Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

  • Status changed to Postponed: needs info 8 months ago
Production build 0.71.5 2024