From 6dcfefc973524c7ec1f4dc32937bb4b18585e4c0 Mon Sep 17 00:00:00 2001 From: Sandro Gehri Date: Mon, 13 May 2024 13:27:33 +0200 Subject: [PATCH] collapse: remove overflow hidden even if height does not match perfect (#4203) --- packages/collapse/src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } })