fix(use-data-scroll-overflow): missing checkOverflow (#5139)

This commit is contained in:
աӄա 2025-04-04 22:04:35 +08:00 committed by GitHub
parent 2420acfe24
commit 51a0808824
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,5 @@
---
"@heroui/use-data-scroll-overflow": patch
---
add missing `checkOverflow` (#4867)

View File

@ -142,6 +142,7 @@ export function useDataScrollOverflow(props: UseDataScrollOverflowProps = {}) {
};
// auto
checkOverflow();
el.addEventListener("scroll", checkOverflow, true);
// controlled