Skip to content

Commit

Permalink
fix(ui5-popover): fix "containing block" issue on safari (#7985)
Browse files Browse the repository at this point in the history
Fixes: #7983
  • Loading branch information
GerganaKremenska authored and ilhan007 committed Dec 8, 2023
1 parent 7a0ba14 commit e2a9891
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/base/src/util/isElementContainingBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ const isElementContainingBlock = (el: HTMLElement) => {
const computedStyle = getComputedStyle(el);

return ["size", "inline-size"].indexOf(computedStyle.containerType) > -1
|| ["transform", "perspective"].indexOf(computedStyle.willChange) > -1
|| ["layout", "paint", "strict", "content"].indexOf(computedStyle.contain) > -1
|| computedStyle.transform !== "none"
|| computedStyle.perspective !== "none"
|| computedStyle.backdropFilter !== "none";
|| ["transform", "perspective"].indexOf(computedStyle.willChange) > -1
|| ["layout", "paint", "strict", "content"].indexOf(computedStyle.contain) > -1
|| (computedStyle.transform && computedStyle.transform !== "none")
|| (computedStyle.perspective && computedStyle.perspective !== "none")
|| (computedStyle.backdropFilter && computedStyle.backdropFilter !== "none");
};

export default isElementContainingBlock;

0 comments on commit e2a9891

Please sign in to comment.