From 2f08947dbf7d23df5a38f21491651da3d5f9ceea Mon Sep 17 00:00:00 2001 From: Rob Cresswell Date: Sun, 3 Jul 2022 19:20:43 +0100 Subject: [PATCH] fix: Prevent double clicking in Vue 3 In Vue 3, click events fall through meaning each event is fired twice when adding @click prop to the component. Adding emits: ['click'] tells the component to expect an external click event, therefore preventing the double event. Co-Authored-By: 1VinceP --- build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/build.ts b/build.ts index c60a00dd..980c8404 100755 --- a/build.ts +++ b/build.ts @@ -32,6 +32,7 @@ function renderTemplate(title: string, svgPathData: string, name: string) {