Skip to content

Commit

Permalink
force onExpanded/onCollapsed for edge cases, fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
smastrom committed Apr 9, 2024
1 parent 8c508d4 commit 74efde2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-collapsed/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ export function isReducedOrDisabled(el: RefEl) {
typeof window.requestAnimationFrame === 'undefined' ||
window.matchMedia('(prefers-reduced-motion: reduce)').matches ||
transition.includes('none') ||
transition.includes('height 0s')
transition.includes('height 0s') ||
el.value.scrollHeight === 0
)
}

Expand Down

0 comments on commit 74efde2

Please sign in to comment.