Skip to content

Commit

Permalink
Merge branch 'dev' into conditional-variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsalem401 authored Oct 30, 2024
2 parents 9d6ec58 + 1bbd683 commit f509b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/utils/sorter/BaseComponentNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ export abstract class BaseComponentNode extends SortableTreeNode<Component> {
function isDisplayed(element: HTMLElement | undefined): boolean {
if (!element) return false;
return (
element instanceof HTMLElement &&
typeof element === 'object' &&
element.nodeType === Node.ELEMENT_NODE &&
window.getComputedStyle(element).display !== 'none' &&
element.offsetWidth > 0 &&
element.offsetHeight > 0
Expand Down

0 comments on commit f509b1c

Please sign in to comment.