Skip to content

Commit

Permalink
type event
Browse files Browse the repository at this point in the history
  • Loading branch information
radek00 committed Nov 12, 2023
1 parent 820b26a commit ed8f9df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Directive } from "vue";

export const clickOutside: Directive = {
beforeMount: function (element, binding) {
element.clickOutsideEvent = function (event) {
element.clickOutsideEvent = function (event: Event) {
if (
!(element === event.target || event.composedPath().includes(element))
) {
Expand Down

0 comments on commit ed8f9df

Please sign in to comment.