@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
14 lines (13 loc) • 365 B
JavaScript
const selector = [
'input:not([disabled])',
'textarea:not([disabled])',
'select:not([disabled])',
'[tabindex]:not([disabled])',
'a[href]',
'button:not([disabled])',
'object',
].join(', ');
export default (node) => {
const children = [...node.querySelectorAll(selector)];
return children.filter((child) => child.offsetParent);
};