FIX: Expand button not working on multiple tables in post

This commit is contained in:
Keegan George 2022-07-20 16:28:43 -07:00
parent 20890f7e67
commit fbbf78d99b
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export default apiInitializer("0.11.1", (api) => {
const popupBtn = createButton();
popupBtn.setAttribute("data-table-id", index); // sets a table id so each table can be distinctly edited
table.parentNode.classList.add("fullscreen-table-wrapper");
const expandBtn = document.querySelector(".open-popup-link");
const expandBtn = table.parentNode.querySelector(".open-popup-link");
if (table.parentNode.contains(expandBtn)) {
expandBtn.parentNode.insertBefore(popupBtn, expandBtn);