williamcruzme / vue-gates

🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://williamcruzme.github.io/vue-gates/
MIT License
264 stars 31 forks source link

:bug: To remove el use remove() instead of removeChild() from parent,… #50

Open christianhpoe opened 2 years ago

christianhpoe commented 2 years ago

… fixing issues where parent gets removed earlier

This is in relation to Issue: #49

For my project this is fixing the issues, I do not really know why this library uses the parent to remove the element already in the variable "el". If there is no specific reason I think remove() is a safer implementation, solving issues where the parent is not accessible.

chantouchsek commented 1 year ago

any update?