Closed alecgibson closed 7 months ago
A recent change calls cancelTouchHoldTimer() in the unmounted hook.
cancelTouchHoldTimer()
unmounted
However, sometimes $el.$$touchObj can be undefined (as seen in the existing check).
$el.$$touchObj
This then leads to an error when calling cancelTouchHoldTimer(), because it tries to access touchHoldTimer on undefined.
touchHoldTimer
undefined
This change adds a check in cancelTouchHoldTimer() for this case.
Thanks a lot!
Published vue3-touch-events@4.1.8.
A recent change calls
cancelTouchHoldTimer()
in theunmounted
hook.However, sometimes
$el.$$touchObj
can be undefined (as seen in the existing check).This then leads to an error when calling
cancelTouchHoldTimer()
, because it tries to accesstouchHoldTimer
onundefined
.This change adds a check in
cancelTouchHoldTimer()
for this case.