diff --git a/packages/collapse/src/index.js b/packages/collapse/src/index.js index 8c4fdf166..89cc8befd 100644 --- a/packages/collapse/src/index.js +++ b/packages/collapse/src/index.js @@ -56,7 +56,7 @@ export default function (Alpine) { start: { height: current+'px' }, end: { height: full+'px' }, }, () => el._x_isShown = true, () => { - if (el.getBoundingClientRect().height == full) { + if (Math.abs(el.getBoundingClientRect().height - full) < 1) { el.style.overflow = null } })