From dd4125b5fd11f06cb69fceb5f846670885ab4d5e Mon Sep 17 00:00:00 2001 From: upsiflu Date: Mon, 24 Feb 2025 11:09:47 +0100 Subject: [PATCH] fix(ui): [WIP] #2390 confirm pill edit with comma --- front/src/components/ui/Pill.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/components/ui/Pill.vue b/front/src/components/ui/Pill.vue index 06e0a7498..5eee1e797 100644 --- a/front/src/components/ui/Pill.vue +++ b/front/src/components/ui/Pill.vue @@ -20,10 +20,10 @@ onMounted(() => { }) const sanitize = () => - model.value = model.value?.replace(',', '')?.trim() + model.value = (console.log("SANITIZE"), model.value?.replace(',', '')?.trim()) const sanitizeAndBlur = () => - sanitize() && input.value?.blur() + sanitize() || input.value?.blur() @@ -49,6 +49,7 @@ const sanitizeAndBlur = () => ref="input" contenteditable class="pill-content" + style="flex-grow: 1; text-align: start;" @keydown.enter.prevent="sanitizeAndBlur" @keyup.space.prevent="sanitizeAndBlur" @keyup.,.prevent="sanitizeAndBlur"