From 150e1003ee65210122bdc072df4b651ec772c0dd Mon Sep 17 00:00:00 2001 From: Samuel Lorch Date: Wed, 12 Apr 2023 20:26:31 +0200 Subject: [PATCH] Remove Pillbar Auto assigning default Value --- client/src/components/inputs/PillBar.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/client/src/components/inputs/PillBar.vue b/client/src/components/inputs/PillBar.vue index dbe6894..3bdab2a 100644 --- a/client/src/components/inputs/PillBar.vue +++ b/client/src/components/inputs/PillBar.vue @@ -20,14 +20,6 @@ let modelValue: MaybeIndex = $ref(null); watch(() => props.modelValue, (val) => { if (val !== modelValue) modelValue = val; }); watch($$(modelValue), (val) => emit('update:modelValue', val)); -onMounted(async() => { - if (isNullish(modelValue)) { - const entries = Object.entries(options); - modelValue = entries.length > 0 - ? entries[0][0] - : null; - } -});