dashjoin / platform

Dashjoin Is an Open Source & Cloud Native Low Code Development and Integration Platform that helps teams deliver applications faster 🚀 Uses a data-driven approach inspired by Linked Data to make use of your existing assets
https://dashjoin.com
GNU Affero General Public License v3.0
89 stars 7 forks source link

Browser freezes when adding a Text widget and start typing ${ #347

Closed pgrill79 closed 3 weeks ago

pgrill79 commented 1 month ago

If you add a Text Widget and start typing ${ in the Field "Element text", the browser freezes after the typing {

aeberhart commented 3 weeks ago

I cannot reproduce this issue. Tried on master branch and 5.1.25-eace531-b32aff7. Tested Card widget and typed ${ going on to ${email}

Can you please try again or specify a different test scenario? Also, can you open & check the browser console via (F12) to see if there are any JS errors

pgrill79 commented 3 weeks ago

Hi Andi,

With Card widget it works for me as well - it only happens if you use the "Text widget":

image

The Console stays empty - tested with Chrome and Edge - Dashjoin 5.1.25-eace531-b32aff7

aeberhart commented 3 weeks ago

Got it - this was caused by an endless recursion which kept re-evaluation the template (string contains ${ -> run template (which assumed ${...} would be replaced))