#7936 fix: handle non-object options #1115

Merged
jorgep merged 1 commits from 7936-warmfix-showRawValues into test 2024-12-19 11:12:47 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 0103927ce7 - Show all commits

View File

@ -379,7 +379,8 @@ function handleKeyDown(event) {
</template> </template>
<template #option="{ opt, itemProps }"> <template #option="{ opt, itemProps }">
<QItem v-bind="itemProps"> <QItem v-bind="itemProps">
<QItemSection v-if="opt[optionValue] == opt[optionLabel]"> <QItemSection v-if="typeof opt !== 'object'"> {{ opt }}</QItemSection>
Review

A esto no se le puede hacer test de front, solo se podría hacer "test de componente". Y de momento no se hacen.

A esto no se le puede hacer test de front, solo se podría hacer "test de componente". Y de momento no se hacen.
<QItemSection v-else-if="opt[optionValue] == opt[optionLabel]">
<QItemLabel>{{ opt[optionLabel] }}</QItemLabel> <QItemLabel>{{ opt[optionLabel] }}</QItemLabel>
</QItemSection> </QItemSection>
<QItemSection v-else> <QItemSection v-else>