Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot read properties of null (reading 'closest') #383

Open
pozdnyakov-ds opened this issue Oct 27, 2023 · 0 comments
Open

Error: Cannot read properties of null (reading 'closest') #383

pozdnyakov-ds opened this issue Oct 27, 2023 · 0 comments

Comments

@pozdnyakov-ds
Copy link

pozdnyakov-ds commented Oct 27, 2023

Hello!
I work with Vue3 & Nuxt.
I have code like:

`
<DraggableResizableContainer
:style="indexStore.layout.container.style"
:key="indexStore.layout.container.key"
class="container"

<draggable-resizable-vue v-for="item in indexStore.layout.content"
:key="item.id"
@activated="onActivated(item.id, item.x, item.y)"
@deactivated="onDeactivated(item.id, item.x, item.y)"
@dblclick.prevent="infoElement(item.id)"
v-model:id="item.id"
v-model:x="item.x"
v-model:y="item.y"
v-model:w="item.w"
v-model:h="item.h"
v-model:active="item.active"
:min-width="50"
:min-height="50"
:z="item.zIndex"
:draggable="!item.fixed"
:resizable="!item.fixed"
:parent="true"
class="el"

`

But constantly get error:
Uncaught TypeError: Cannot read properties of null (reading 'closest')
at getParentSize (DraggableResizableVue3.vue:512:20)
at checkParentSize (DraggableResizableVue3.vue:498:47)

Does anyone have any ideas on possible causes of the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant