Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Web Components Support #92
The 'click-outside' Vue directive is not working when using it inside a web component.
In order to mantain the web components encapsulation principle, when the ‘click’ event is triggered from an element that is inside of the “#shadow-root”, the browser retargets the event to the host element of the shadow dom.
For example, clicking the element
So the problem is the
To solve this, we can use instead the