From 6fd6d7cbb135a1d989f6dce21d94304b2bcb50fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=98=99=E2=97=A6=20The=20Tablet=20=E2=9D=80=20GamerGirla?= =?UTF-8?q?ndCo=20=E2=97=A6=E2=9D=A7?= Date: Sat, 16 Mar 2024 21:18:07 -0400 Subject: [PATCH] refactor(components): add `data-testid` attribute to some components --- components/baseEditor.vue | 28 +++++++++++++++++++-- components/findUser.vue | 1 + components/story/atoms/bands.vue | 1 + components/story/atoms/characters.vue | 2 +- components/story/atoms/genre.vue | 2 +- components/story/atoms/pairings.vue | 6 ++--- components/story/create/singleChapter.vue | 30 ++++++++++++----------- components/story/create/uploadOrPaste.vue | 8 +++--- 8 files changed, 54 insertions(+), 24 deletions(-) diff --git a/components/baseEditor.vue b/components/baseEditor.vue index c86a695..a8ecf89 100644 --- a/components/baseEditor.vue +++ b/components/baseEditor.vue @@ -11,12 +11,26 @@ wrapCol?: any; }>(); let dark = inject("dark"); + const stop = (e, ed) => { + console.log(e.type.toUpperCase(), e, ed); + e.preventDefault(); + e.cancel(); + e.stopImmediatePropagation(); + e.stopPropagation(); + };