Typing a ternary operation in the dynamic binding adds a " + " before the " ? "

Wappler Version : 5.0.0 (but happened in 4.x)
Operating System : Windows 10
Server Model: Node
Database Type: Postgres
Hosting Type: Docker / Linode

Expected behavior

In the client side dynamic bindings I will type this in the code view:

And it should translate to this in the code:

dmx-on:click="var_showWorkTags.setValue(var_showWorkTags.value==1?0:1)

Actual behavior

What actually happens is this:

dmx-on:click="var_showWorkTags.setValue(var_showWorkTags.value==1+?0:1)"

How to reproduce

This has been happening for a while, but i just edit it directly in the code…i though i should log it properly though.

It happens every time.

Simply manually type a ternary operation in the code section of data bindings and it should reproduce error.

I probably reported something similar a while ago, JonL suggested to wrap the expression in parentheses, like so:

(var_showWorkTags.value==1?0:1)

Can you try it as a workaround for the time being?

I’m fine to work around it, i just remove the + in the code…i just thought it should be reported so its on the record…just a minor bug