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

Changing Permissions removes Parent and Children from DOM in wrong order (using bootstrap) #49

Open
christianhpoe opened this issue Nov 16, 2021 · 1 comment

Comments

@christianhpoe
Copy link

When changing the permissions in a running application (e.g. by calling a backend for updated permission) and updating them through setPermissions, many components rendering child components get removed from outward to inward. This leads to an error, where children try to remove themselve from a non existing parent.
This happens with multiple bootstrap components.
Attached you can find the errors and a code example.

Errors
image
image

Code
image

Temporary Fix:
You can fix this by using a v-show instead of the provided v-permission, which does not remove the element from the DOM but just hides it. As this can come with unwanted security implications its not an ideal fix.
image

Do you have any suggestion, how to fix this?

@m7salam
Copy link

m7salam commented Nov 16, 2021

same happened with me as well , hopefully the maintainer can find a solution for this

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