Error when using the "Disable the scanner if these elements are detected" field — invalid selector generated

Created on 13 August 2025, 4 days ago

Problem/Motivation

When I add a value to the "Disable the scanner if these elements are detected" field in the module settings, the module generates a selector string with an extra trailing comma.
This produces an invalid selector, causing a SyntaxError in the browser console.

Steps to reproduce

  1. Go to the Editoria11y module settings page.
  2. In the "Disable the scanner if these elements are detected" field, add a selector.
  3. Save the configuration.
  4. Load any page where Editoria11y runs.
  5. Open the browser console.

Proposed resolution

Update the JavaScript to remove the trailing comma and space from the selector string when drupalSettings.editoria11y.no_load is set.

🐛 Bug report
Status

Active

Version

2.2

Component

Bugs

Created by

🇪🇨Ecuador leoenriquezp

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024