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

Fixed displaying nested containers #66

Merged
merged 4 commits into from
Feb 6, 2022
Merged

Fixed displaying nested containers #66

merged 4 commits into from
Feb 6, 2022

Conversation

Sjoertjuh
Copy link
Contributor

Fixed an issue I had locally with containers not being displayed.

Probably fixes #46, but I'm not sure.

The nextTick takes care of waiting for the deletion of an attribute before registering new dependency watchers. This was an issue because the watchers work in chronological order. When a component is mounted that depends on an attribute and another component with the same dependency is being unmounted afterwards, the attribute will be deleted after registering the dependencies, so the !valueBag.hasOwnProperty(attribute) check in the registerDependencyWatchers method will return false.

I also added parseInt to the attributeValue in executeCondition, so comparing integers works better. I'm not sure if it breaks anything, so feel free to remove it if it does.

@milewski milewski merged commit 0b431cc into dcasia:development Feb 6, 2022
@milewski
Copy link
Member

milewski commented Feb 6, 2022

Thanks!

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

Successfully merging this pull request may close these issues.

Conditional field is not being displayed inside a nested form
2 participants