Issue #3644400: Row click selection is broken: $(...).once is not a function

Fixes #3644400. The JS and library changes are as described in the issue summary.

Tests

Adds ViewDecorationTest (FunctionalJavascript) and a test module providing a node_browser view with table and grid displays, plus an entity browser for each. It covers row, checkbox, link, header and grid clicks, AJAX paging, and core tableselect staying in sync.

All 7 tests fail on 1.1.x and pass with this change. Reverting each of the three smaller handler fixes on its own fails the matching test.

Review notes

  • The test runs on Claro. The module's .view .views-table selector needs those classes from the theme, and Stark doesn't add them. That is existing behaviour, left for a follow-up if anyone cares.
  • The AJAX test finds its checkbox through the row rather than by label, because after AJAX paging the checkboxes are rendered without an ID.
  • ESLint still reports style findings in eb_view_decoration.js. Nearly all predate this change. Let me know if you want them added!
Edited by Andrew Berry

Merge request reports

Loading
Loading