Skip to content

Commit

Permalink
tweak(Tinebase/UI): radio box preselect did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Wolny committed Nov 21, 2024
1 parent 5f42c98 commit d12fbab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit d12fbab

Please sign in to comment.