cfc05fb413
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')
10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
export default function(owner, key = '-view-registry:main') {
|
|
const components = owner.lookup(key);
|
|
return function(el) {
|
|
const id = el.getAttribute('id');
|
|
if (id) {
|
|
return components[id];
|
|
}
|
|
};
|
|
}
|