If you create a View that's a table with some click sort columns, the links to click and sort won't actually be added.

I'll share a patch in a little bit that gets it working, but the styling isn't great (the ascending/descending arrows don't line up right and don't look super Radix-y).

Also, enabling AJAX on the View (even with the page) doesn't work - it still does the full page reload.

So, the patch will need some work before being merged!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dsnopek created an issue. See original summary.

dsnopek’s picture

Status: Active » Needs work
FileSize
1.1 KB

Here's the patch! It needs some work as described above.

  • arshadcn committed ce3be5c on 8.x-3.x authored by dsnopek
    Issue #2938145 by dsnopek: Click sort on Views is unsupported
    
shadcn’s picture

Status: Needs work » Fixed

Looks like the whole template needed a refresh. Some more work has gone into it. #2502089: Remove SafeMarkup::set() in template_preprocess_views_view_table()

I just updated it to work with the latest views from core.

Status: Fixed » Closed (fixed)

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