diff --git a/frontend/src/lib/components/apps/components/inputs/AppMultiSelect.svelte b/frontend/src/lib/components/apps/components/inputs/AppMultiSelect.svelte index e7af65e2bf13c..56b3197a91d33 100644 --- a/frontend/src/lib/components/apps/components/inputs/AppMultiSelect.svelte +++ b/frontend/src/lib/components/apps/components/inputs/AppMultiSelect.svelte @@ -149,9 +149,6 @@ ulSelectedClass={`${resolvedConfig.allowOverflow ? '' : 'overflow-auto max-h-full'} `} ulOptionsClass={'p-2 !bg-surface-secondary'} bind:selected={value} - on:change={() => { - outputs?.result.set([...(value ?? [])]) - }} options={Array.isArray(items) ? items : []} placeholder={resolvedConfig.placeholder} allowUserOptions={resolvedConfig.create} @@ -163,12 +160,23 @@ open = false }} > -
+ +
{ + const nValue = [...(value ?? []), option] + value = [...new Set(nValue)] + outputs?.result.set([...(value ?? [])]) + }} + > {option}