From d12fbab086575d8bbcea101c5496df59dd232977 Mon Sep 17 00:00:00 2001 From: Jasper Wolny Date: Thu, 21 Nov 2024 16:17:53 +0100 Subject: [PATCH] tweak(Tinebase/UI): radio box preselect did not work --- .../dialog/vue/MultiOptionsDialog/MultiOptionsDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tine20/Tinebase/js/widgets/dialog/vue/MultiOptionsDialog/MultiOptionsDialog.vue b/tine20/Tinebase/js/widgets/dialog/vue/MultiOptionsDialog/MultiOptionsDialog.vue index 318e40fbd3..a0da08a22c 100644 --- a/tine20/Tinebase/js/widgets/dialog/vue/MultiOptionsDialog/MultiOptionsDialog.vue +++ b/tine20/Tinebase/js/widgets/dialog/vue/MultiOptionsDialog/MultiOptionsDialog.vue @@ -38,7 +38,7 @@ const props = defineProps({ alertVariant: String // 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark', }) -const selectedOption = ref(props.options[props.allowMultiple ? 'filter' : 'find'](el => el.checked)?.inputValue) +const selectedOption = ref(props.allowMultiple ? props.options.filter(e => e.checked).map(e => e.inputValue) : props.options.find(el => el.checked)?.inputValue) const _options = computed(() => { return props.options.map(el => {