Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork135
Closed
Description
Before opening:
- Search for duplicate or closed issues
- Validate any HTML to avoid common problems
- Read thecontributing guidelines
Bug reports must include:
OS: Linux Fedora 35, Firefox 99.0.1
@coreui/vue": "^4.3.0",
"@coreui/coreui": "4.0.0",
Using CCarousel. Leaving page throws error "element is null" in function isVisible$1, @coreui/vue/dist/index.es.js
Reason is missing "null" check
Please insert check at @coreui/vue/src/components/carousel/CCarousel.ts like
const isVisible = (element: HTMLDivElement) => { // !!! new ---------- if ((element || "") === "") return false // !!! --------------- const rect = element.getBoundingClientRect() return ( rect.top >= 0 && rect.left >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) && rect.right <= (window.innerWidth || document.documentElement.clientWidth) )}Metadata
Metadata
Assignees
Labels
No labels