Skip to content

Commit

Permalink
Merge pull request #1045 from AbleKSaju/fix-select-type
Browse files Browse the repository at this point in the history
fix: display default value in 'select' fieldtype
  • Loading branch information
akshayitzme authored Dec 10, 2024
2 parents 6361df6 + 8f47bb4 commit 70e69e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Controls/Select.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
'text-gray-500': !value,
}"
>
<span v-if="value" class="cursor-text w-full">{{ selectValue }}</span>
<span v-if="value" class="cursor-text w-full">{{
selectValue ? selectValue : value
}}</span>
<span v-else>{{ inputPlaceholder }}</span>
<svg
v-if="!isReadOnly"
Expand Down

0 comments on commit 70e69e6

Please sign in to comment.