Skip to content

Commit

Permalink
Merge pull request #67 from Patternslib/fix-error-in-table-extension
Browse files Browse the repository at this point in the history
fix: Update getAttrs function to correctly check for the presence of a table inside a div.scroll-table wrapper
  • Loading branch information
pilz authored Jul 23, 2024
2 parents 307c9ba + 8843e28 commit c907f98
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/extensions/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const factory = () => {
{
tag: "div",
getAttrs: (node) =>
node.matches(".scroll-table").getElementsByTagName("table") !==
null && null,
node.querySelector(".scroll-table > table") ? null : false,
},
];
},
Expand Down

0 comments on commit c907f98

Please sign in to comment.