From 75c9506662d07bd660e59553dcfb3d7e9f358023 Mon Sep 17 00:00:00 2001 From: Merlin Flach Date: Wed, 23 Nov 2022 15:40:15 +0100 Subject: [PATCH 1/6] fix: avoid reactive variables to trigger themselves --- src/Multiselect.vue | 10 +++++----- src/utils/useOptions.ts | 37 ++++++++++++++++++++++--------------- 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/Multiselect.vue b/src/Multiselect.vue index 9dab941..cdff281 100644 --- a/src/Multiselect.vue +++ b/src/Multiselect.vue @@ -67,7 +67,7 @@ >
  • - {{ optionLabel(option,selectedOptions) }} + {{ optionLabel(option) }}
  • @@ -189,7 +189,7 @@ export default defineComponent({ * By default, it returns the value attribute of the passed option. */ optionValue: { - type: Function as PropType<((option: Option | unknown, selectedOptions: Array