mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-09-16 14:52:13 -04:00
We were relying on the `event.target`, and sometimes that target was not the button element with the `table-id` data attribute, but the svg. This commit makes a few changes: - renames `tableId` to `tableIndex` - passes the index as part of the attributes to the `generateModal` function