when I call setValue(0) I get this error:

Uncaught TypeError: Cannot read property 'offsetBoundary' of undefined


How do I use this properly?