We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8c11e4 commit 90cf6ffCopy full SHA for 90cf6ff
.changeset/six-adults-jam.md
@@ -0,0 +1,5 @@
1
+---
2
+"@vue-flow/core": patch
3
4
+
5
+Add nullish operator to checkVisibility call
packages/core/src/composables/useResizeHandler.ts
@@ -16,7 +16,7 @@ export function useResizeHandler(viewportEl: Ref<HTMLDivElement | null>): void {
16
17
onMounted(() => {
18
const updateDimensions = () => {
19
- if (!viewportEl.value || !(viewportEl.value.checkVisibility() ?? true)) {
+ if (!viewportEl.value || !(viewportEl.value.checkVisibility?.() ?? true)) {
20
return
21
}
22
0 commit comments