NPellet / visualizer

Other
43 stars 24 forks source link

Twig form not updated if variable undefined #1143

Open lpatiny opened 4 years ago

lpatiny commented 4 years ago

In a twig form template when a variable is undefined we have a blank event but not an update event.

This has as consequence that the form disappear.

I would like that even if an input variable is undefined the rendering of the form still happens.

It can be test in the following testcase if you click on the button of the bottom executor module.

http://127.0.0.1:5501/src/index.html?config=../testcase/config/default.json&viewURL=../testcase/data/twig-form-light/view.json&dataURL=../testcase/data/twig-form-light/data.json

stropitek commented 4 years ago

So this is not a regression right? And it's not specifically linked to the twig module? All modules behave like this when receiving an undefined value?