diff --git a/front/src/components/ui/Pill.vue b/front/src/components/ui/Pill.vue index c1a0c090d..0d164627d 100644 --- a/front/src/components/ui/Pill.vue +++ b/front/src/components/ui/Pill.vue @@ -2,22 +2,21 @@ import { ref, onMounted } from 'vue' import { type ColorProps, type PastelProps, type VariantProps, type RaisedProps, color } from '~/composables/color' - -const input = ref(); +const input = ref() const emit = defineEmits<{ click: [event: MouseEvent] }>() const handleClick = (event: MouseEvent) => { emit('click', event) if (model.value !== undefined) { - input.value?.focus(); + input.value?.focus() } } const props = defineProps<{ noUnderline?:true, autofocus? : boolean } &(PastelProps | ColorProps) & VariantProps & RaisedProps>() const model = defineModel() onMounted(() => { - if (props.autofocus) input.value?.focus(); + if (props.autofocus) input.value?.focus() }) const sanitize = () => @@ -26,7 +25,6 @@ const sanitize = () => const sanitizeAndBlur = () => sanitize() && input.value?.blur() -