packages/sdk/src/components/grid/utils/element.ts
export const isAncestorOfActiveElement = (id: string): boolean => {
let activeElement = document.activeElement;
while (activeElement) {
if (activeElement.id === id) {
return true;
}
activeElement = activeElement.parentElement;
}
return false;
};