Uninstall form does not add drupal.tableresponsive library

Created on 9 January 2023, almost 2 years ago
Updated 19 February 2023, almost 2 years ago

Problem/Motivation

buildForm() does not add the 'core/drupal.tableresponsive' library, whereas the corresponding install form does add this library. The missing library means that javascript tests for checking the filtering of modules on the uninstall form does not work. The page does not refresh with any changes when a filter value is entered.

Steps to reproduce

See the uploaded recording of the failing test for module_filter. I am guessing that the problem is not noticed when using the UI form interactively, as maybe some other process is covering the responsive refeshing. But in the pared-down javascript test it is missing and the test fails. The test for the install page works fine as-is, because the drupal.tableresponsive is already added in the form.

Proposed resolution

Add $form['#attached']['library'][] = 'core/drupal.tableresponsive'; to the buildForm() function.
See uploaded recording of the test which works when this library is added.

Remaining tasks

πŸ› Bug report
Status

Closed: duplicate

Version

10.1 ✨

Component
FormΒ  β†’

Last updated about 8 hours ago

Created by

πŸ‡¬πŸ‡§United Kingdom jonathan1055

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.

Production build 0.71.5 2024