Hi, I figured out that when I call the clearRange() method, it calls the reset() method, and it is passing an object inside the jQuery val() method ({start: null, end: null}), and this is causing a [object Object] to appear where the val should be a string not an object.
I think that it's better pass the object as string ('{start: null, end: null}') will fix.
Thanks for your analysis. I think the simplest fix is to use val('') in the reset() method. The alternative is to wrap the range object in JSON.stringify().
Hi, I figured out that when I call the
clearRange()
method, it calls thereset()
method, and it is passing an object inside the jQueryval()
method ({start: null, end: null}
), and this is causing a[object Object]
to appear where the val should be a string not an object.I think that it's better pass the object as string (
'{start: null, end: null}'
) will fix.Thanks!