-
Goal:
I have a button on which I have a clickHandler that sets a variable "viewedMonth". This click handler utilizes a function "getNextMonth" that expects 2 parameters: inputDate (date type) and isIncrease (boolean)
Clicking the button should increase the viewedMonth by one with every click
However the first clicks works, afterwards the variable is not set or is set randomly. -
Screenshots:
-
App json export:
dataEntry.json (189.1 KB)
Hi @boernard,
Thanks for reaching out! I am able to reproduce this as well. I will flag it to our team for a fix
1 Like
Hi @boernard,
I wanted to circle back with a potential workaround I believe it will work if you stringify the date object by adding
.toString()
to the end of the second line of the function - hope that helps!
1 Like