DEV: Update expand-table table query (#17347)

Instead of selecting the first table in the parent, we now select the first table after the selected <kbd>expand table</kbd> button
This commit is contained in:
Isaac Janzen 2022-07-06 08:01:46 -05:00 committed by GitHub
parent fb31ae04a7
commit 5c4c8d26c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ export default {
}
function generateModal(event) {
const table = event.target.parentNode.querySelector("table");
const table = event.target.nextElementSibling;
const tempTable = table.cloneNode(true);
showModal("fullscreen-table").set("tableHtml", tempTable);