mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2026-11-02 09:28:33 -05: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