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

DualTemplate ToggleTemplate issue #47

Open
eeevgeniev opened this issue Oct 25, 2021 · 1 comment
Open

DualTemplate ToggleTemplate issue #47

eeevgeniev opened this issue Oct 25, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@eeevgeniev
Copy link
Collaborator

DualTemplate calls two times ToggleTemplate method when showed template has button element.
Example of the view:

Back
@michaelelfial michaelelfial added the bug Something isn't working label Oct 26, 2021
@michaelelfial
Copy link
Contributor

The kind of usage that lead to this bug is one of those that should be avoided - data bound part of a view is toggled which effectively destroys/creates a part of the view. Depending on how data is managed this can lead to serious mistakes in the form submission. In such cases data bound control over the visible template should be used - through binding linking the get_/set_alternatetemplate property of DualTemplate.

Still the issue is real and should be investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants