File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 174
174
} ,
175
175
176
176
getUnderlyingVm ( htmlElt ) {
177
- const index = computeVmIndex ( this . getChildrenNodes ( ) , htmlElt )
177
+ const index = computeVmIndex ( this . getChildrenNodes ( ) || [ ] , htmlElt )
178
+ if ( index === - 1 ) {
179
+ //Edge case during move callback: related element might be
180
+ //an element different from collection
181
+ return null
182
+ }
178
183
const element = this . realList [ index ]
179
184
return { index, element }
180
185
} ,
222
227
const context = { list, component }
223
228
if ( to !== related && list && component . getUnderlyingVm ) {
224
229
const destination = component . getUnderlyingVm ( related )
225
- return Object . assign ( destination , context )
230
+ if ( destination ) {
231
+ return Object . assign ( destination , context )
232
+ }
226
233
}
227
234
228
235
return context
You can’t perform that action at this time.
0 commit comments