You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is used if the element that is opening (model, select box etc) is already outside of the element with the v-click-outside directive on.
In a situation something like this (ignore any syntax errors its just an example) where the div with the directive is not actually the parent of the element that will be opened/closed.
<divv-click-outside="setOpen =false"
@click="setOpen =true"
>
</div>
<divref="poppedUpItem"
:class="{ 'select-hide':!setOpen }"
>
Some popup to show here
</div>
This library has a function that checks if the this.popupItem element is clicked and if so then don't run the click outside logic.
Would someone please help me understand what is happening with the
mounted()
function:I notice
popupItem
is set to$el
butpopupItem
is never defined.The text was updated successfully, but these errors were encountered: