Closed naeramarth7 closed 5 years ago
hi @naeramarth7 , thanks for all the contribution! Didn't know about pointer events until you came by !
for this case, however, I tried running parseInt( null )
and parseInt( '' )
, the result is the same.
Do you think we should instead do '0'
as default?
Closing PR was accidental, sorry
Happy to help (:
The result is the same, right. Though the property is correctly defined as a string. Thus TypeScript complains about assigning 'null' to a value that must be a string.
That's basically why I propose changing this to ''
. '0'
should work as well though.
thanks ! :)
Set a different default value (
''
) forlongPressTimeoutId
, since null is not allowed and cannot be used withparseInt
.