Skip to content

Commit 6dcfefc

Browse files
authored
collapse: remove overflow hidden even if height does not match perfect (#4203)
1 parent ad13dbf commit 6dcfefc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/collapse/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default function (Alpine) {
5656
start: { height: current+'px' },
5757
end: { height: full+'px' },
5858
}, () => el._x_isShown = true, () => {
59-
if (el.getBoundingClientRect().height == full) {
59+
if (Math.abs(el.getBoundingClientRect().height - full) < 1) {
6060
el.style.overflow = null
6161
}
6262
})

0 commit comments

Comments
 (0)