clickout

Vue directive to fire a function when the user clicks anywhere outside the target element.

Usage

Open your console to see the results