diff --git a/packages/bbui/src/Form/Checkbox.svelte b/packages/bbui/src/Form/Checkbox.svelte index 6680ea6813..1f3e439c2a 100644 --- a/packages/bbui/src/Form/Checkbox.svelte +++ b/packages/bbui/src/Form/Checkbox.svelte @@ -12,8 +12,8 @@ const dispatch = createEventDispatcher() const onChange = e => { - dispatch("change", e.detail) value = e.detail + dispatch("change", e.detail) } diff --git a/packages/bbui/src/Form/Combobox.svelte b/packages/bbui/src/Form/Combobox.svelte index 77953e52d0..6b1e67a299 100644 --- a/packages/bbui/src/Form/Combobox.svelte +++ b/packages/bbui/src/Form/Combobox.svelte @@ -15,8 +15,8 @@ const dispatch = createEventDispatcher() const onChange = e => { - dispatch("change", e.detail) value = e.detail + dispatch("change", e.detail) } const extractProperty = (value, property) => { if (value && typeof value === "object") { diff --git a/packages/bbui/src/Form/Core/Multiselect.svelte b/packages/bbui/src/Form/Core/Multiselect.svelte index a1395a66b2..97420fabad 100644 --- a/packages/bbui/src/Form/Core/Multiselect.svelte +++ b/packages/bbui/src/Form/Core/Multiselect.svelte @@ -46,10 +46,10 @@ let map = null if (options?.length) { map = {} - options.forEach(option => { - const optionValue = getOptionValue(option) + options.forEach((option, idx) => { + const optionValue = getOptionValue(option, idx) if (optionValue != null) { - map[optionValue] = getOptionLabel(option) || "" + map[optionValue] = getOptionLabel(option, idx) || "" } }) } diff --git a/packages/bbui/src/Form/Core/Picker.svelte b/packages/bbui/src/Form/Core/Picker.svelte index 01ce2a06af..2f5606dcf1 100644 --- a/packages/bbui/src/Form/Core/Picker.svelte +++ b/packages/bbui/src/Form/Core/Picker.svelte @@ -81,16 +81,16 @@ {/if} {#if options && Array.isArray(options)} - {#each options as option} + {#each options as option, idx}