fix(core): add nullish operator to check visibility (#1942)
* fix(core): add nullish operator to check visibility Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> * chore(changeset): add Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --------- Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -16,7 +16,7 @@ export function useResizeHandler(viewportEl: Ref<HTMLDivElement | null>): void {
|
||||
|
||||
onMounted(() => {
|
||||
const updateDimensions = () => {
|
||||
if (!viewportEl.value || !(viewportEl.value.checkVisibility() ?? true)) {
|
||||
if (!viewportEl.value || !(viewportEl.value.checkVisibility?.() ?? true)) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user