Removing Headers on a table after setting one results in "Uncaught ReferenceError: i is not defined"

Created on 4 May 2023, almost 2 years ago
Updated 19 May 2023, almost 2 years ago

Problem/Motivation

Removing Headers on a table after setting one results in "Uncaught ReferenceError: i is not defined" in ckeditor.

Steps to reproduce

  1. Create a table with enough rows to add a header
  2. Add text to the table
  3. Update the Table Properties to set a header (First Row, First column, or Both)
  4. Press okay and reopen Table Properties
  5. Change the Headers to None

Proposed resolution

Declare i variable using let at line 160 in uswds_table/table.js

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States vetchneons

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

Comments & Activities

Production build 0.71.5 2024