I am using a custom _table.html template. I want to surround the table with an element which has overflow-x: scroll so that my table scrolls within its container rather than filling the width of the page. But in this case the leaflet map is put inside the scrollable container too because the code is doing this:
let table = document.querySelector('table.rows-and-columns'); table.parentNode.insertBefore(el, table);
I am using a custom
_table.html
template. I want to surround the table with an element which has overflow-x: scroll so that my table scrolls within its container rather than filling the width of the page. But in this case the leaflet map is put inside the scrollable container too because the code is doing this:let table = document.querySelector('table.rows-and-columns'); table.parentNode.insertBefore(el, table);