Data bindings - wrong brackets added

======== TEMPLATE BUG FORM ========

Wappler Version : Windows 10
Operating System : 3.0.0 Beta 6

Expected behavior

choosing ‘insert binding’ and selecting an expression should insert the expression with the correct syntax

Actual behavior

in some cases the wrong syntax is used

How to reproduce

click in between the brackets, eg:
dmx.parse()
select ‘insert bindings’, and select an expression. The result is enclosed in {{}}, instead of single quotes, eg:
dmx.parse({{browser1.userAgent}})

I think there are several cases where expression are incorrectly inserted and need some editing in code view to work correctly. Having said that, I was pleased that bindings can be selecting with dmx.parse() even if a little editing is needed. I hadn’t noticed this before or perhaps it’s new. You need to be careful where you click; the feature will insert the bindings wherever you click, eg:
dm{{browser1.userAgent}}x.parse()

Community Page
Last updated: