File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -223,9 +223,9 @@ export default create({
223
223
})
224
224
onDeactivated (() => {
225
225
state .keepAlive = true
226
- ;(myDrag as any ).value .removeEventListener (' touchstart' , touchStart )
227
- ;(myDrag as any ).value .removeEventListener (' touchmove' , touchMove )
228
- ;(myDrag as any ).value .removeEventListener (' touchend' , touchEnd )
226
+ ;(myDrag as any ).value ? .removeEventListener (' touchstart' , touchStart )
227
+ ;(myDrag as any ).value ? .removeEventListener (' touchmove' , touchMove )
228
+ ;(myDrag as any ).value ? .removeEventListener (' touchend' , touchEnd )
229
229
})
230
230
return {
231
231
myDrag ,
Original file line number Diff line number Diff line change @@ -179,9 +179,9 @@ export default create({
179
179
})
180
180
onDeactivated (() => {
181
181
state .keepAlive = true
182
- myDrag .value .removeEventListener (' touchstart' , touchStart )
183
- myDrag .value .removeEventListener (' touchmove' , touchMove )
184
- myDrag .value .removeEventListener (' touchend' , touchEnd )
182
+ myDrag .value ? .removeEventListener (' touchstart' , touchStart )
183
+ myDrag .value ? .removeEventListener (' touchmove' , touchMove )
184
+ myDrag .value ? .removeEventListener (' touchend' , touchEnd )
185
185
})
186
186
return {
187
187
myDrag ,
You can’t perform that action at this time.
0 commit comments