-
Notifications
You must be signed in to change notification settings - Fork 1
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
when setting options , uncaught type error apears #1
Comments
Hey @eric8810 ! I somewhat didn't see your issue. I will check this over the week-end and let you know :) |
So I tested your example and it works fine on my side. Can you provide me with a reproduction link? |
when the renderList changes, this error occurs. |
I'd make a reproduce demo today |
I wanted to make an example, only on vue, but without a backend there is no error, the error occurs when 2 identical lists are on the same page and the data after sorting comes over the network updating both lists. |
Hey @Elgorm ! You can still provide an example, just mock your backend behavior. |
Closing for inactivity. Feel free to re-open if needed. |
dom tree be like
<div class="user-list" v-sortable="{ options: { handle: '.handle', animation: 200, easing: 'cubic-bezier(0.65, 0, 0.35, 1)' } }" @end="onOrderChange" > <div class="user-list-item" v-for="user in renderList" :key="user.uid"> <div class="handle"> <AIcon category="general" name="drag-dot-vertical"></AIcon> </div> <img class="user-head" :src="user.headIconUrl" /> <div class="user-name">{{ user.nickname }}</div> </div> </div>
Error Message:
Uncaught TypeError: Cannot read properties of null (reading 'options') /node_modules/.vite/deps/vue3-sortablejs.js?v=1770eda3:773:39 TypeError: Cannot read properties of null (reading 'options') at http://192.168.111.212:8080/node_modules/.vite/deps/vue3-sortablejs.js?v=1770eda3:773:39 at Array.some (<anonymous>) at _detectNearestEmptySortable2 (http://192.168.111.212:8080/node_modules/.vite/deps/vue3-sortablejs.js?v=1770eda3:772:13) at HTMLDocument.nearestEmptyInsertDetectEvent2 (http://192.168.111.212:8080/node_modules/.vite/deps/vue3-sortablejs.js?v=1770eda3:838:19)
The text was updated successfully, but these errors were encountered: