Geo Sites - Console error dump when Site card is collapsed
What/Why
There seems to be an issue with the GlPopover
in geo_node_verification_info.vue. When you collapse a Site card it will dump an error to the console about not being able to find the $el
.
Steps to reproduce
- Go to the Geo Sites Dashboard
- Open your dev console
- Collapse a Site Card
- Note the console.error
Screenshots
What do we do
When you collapse the component the popover is still trying to keep itself mounted but loses the element it is listening to behind a v-if
. There is likely a better way to find our target element that won't break when it is hidden. This doesn't cause the popover to stop working as when you uncollapse the site card it will continue to show up. Also noting we have other GlPopover
usages in this scope that aren't erroring. This could be a good place to look for if we are doing something wrong/different on this one.
note: Since this is only a console error and not a UI issue it hasn't been reported and been around for nearly a year. This is a low priority but would be nice to fix to not cause any "red herrings" for our support engineers if they end up debugging a real UI problem.