Skip to content

Commit fc264e0

Browse files
committed
fix: actually hide hidden input type
1 parent ea4d277 commit fc264e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/components-vue/src/components/form/Input.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<BaseErrorBoundary :theme="theme">
3-
<div class="flx --flxColumn --flx-start --gap-5">
3+
<div v-if="input.type !== eFT.HIDDEN" class="flx --flxColumn --flx-start --gap-5">
44
<FormInputOptions
55
v-if="!input.defaults && input.type === eFT.CHOICE"
66
v-slot="{ options }"
@@ -27,7 +27,7 @@
2727
/>
2828
<!-- Future inner loop input -->
2929
<FormInputLoop
30-
v-else-if="input.type !== eFT.HIDDEN"
30+
v-else
3131
v-slot="{ i }"
3232
:key="input.options.length + models.length"
3333
:models="models"

packages/components-vue/src/components/form/Simple.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
>
2323
<template v-for="(input, inputIndex) in model" :key="inputIndex">
2424
<div
25-
v-if="input && model[inputIndex]"
25+
v-if="input && model[inputIndex] && input.type !== eFormType.HIDDEN"
2626
class="flx --flxColumn --flx-start-stretch --gap-5"
2727
>
2828
<p v-if="getSuggestedTitle(input)" class="--txtSize-sm">

0 commit comments

Comments
 (0)