diff --git a/src/utils/getPosition.js b/src/utils/getPosition.js index d03a7f2bb..e84e294a2 100644 --- a/src/utils/getPosition.js +++ b/src/utils/getPosition.js @@ -274,7 +274,7 @@ const calculateOffset = (offset) => { const getParent = (currentTarget) => { let currentParent = currentTarget while (currentParent) { - if (currentParent.style.transform.length > 0) break + if (window.getComputedStyle(currentParent).getPropertyValue('transform') !== 'none') break currentParent = currentParent.parentElement }