Skip to content

Commit 525dc79

Browse files
Fix for issue #206, Carousel not closed properly after route change
1 parent a5c0ad5 commit 525dc79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/coreui-vue/src/components/carousel/CCarousel.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
} from 'vue'
1313

1414
const isVisible = (element: HTMLDivElement) => {
15+
// check e ei not null to prevent error when leaving page
16+
if ((element || "") === "") return false
1517
const rect = element.getBoundingClientRect()
1618
return (
1719
rect.top >= 0 &&

0 commit comments

Comments
 (0)