Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Twig form not updated if variable undefined #1143

Open
lpatiny opened this issue Apr 14, 2020 · 1 comment
Open

Twig form not updated if variable undefined #1143

lpatiny opened this issue Apr 14, 2020 · 1 comment

Comments

@lpatiny
Copy link
Collaborator

lpatiny commented Apr 14, 2020

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
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants