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"