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:
5
.changeset/six-adults-jam.md
Normal file
5
.changeset/six-adults-jam.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@vue-flow/core": patch
|
||||
---
|
||||
|
||||
Add nullish operator to checkVisibility call
|
||||
@@ -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