Skip to content

Commit

Permalink
collapse: remove overflow hidden even if height does not match perfect (
Browse files Browse the repository at this point in the history
  • Loading branch information
gehrisandro authored May 13, 2024
1 parent ad13dbf commit 6dcfefc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/collapse/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
Expand Down

0 comments on commit 6dcfefc

Please # to comment.