mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 05:45:46 +00:00
4b46caf77a
Tables need to calculate their sizing depending on other things in the DOM. When a table is in a tab panel, some of these things aren't visible and therefore some values are zero during `didInsertElement`. This commit ensures that the resize calc of the table is performed when it's parent tab is clicked (and therefore when the table 'appears')
6 lines
131 B
JavaScript
6 lines
131 B
JavaScript
export default function(doc = document) {
|
|
return function(sel, context = doc) {
|
|
return context.querySelectorAll(sel);
|
|
};
|
|
}
|