Skip to content

Commit 290a0d5

Browse files
fix: conditionally render prefix and suffix slots (#1023)
1 parent 3eef811 commit 290a0d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src2/components/LazyTextInput.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ const modelValue = defineModel({
1919
@keydown.enter="modelValue = $event.target.value"
2020
@blur="modelValue = $event.target.value"
2121
>
22-
<template #prefix>
22+
<template #prefix v-if="$slots.prefix">
2323
<slot name="prefix"></slot>
2424
</template>
25-
<template #suffix>
25+
<template #suffix v-if="$slots.suffix">
2626
<slot name="suffix"></slot>
2727
</template>
2828
</TextInput>

0 commit comments

Comments
 (0)