Skip to content

Commit 8ecc851

Browse files
committed
don't render labels when no label text is provided, proposed option 1 from #347
1 parent 455fc91 commit 8ecc851

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/formGenerator.vue

+2
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ div.vue-form-generator(v-if='schema != null')
205205
206206
// Should field type have a label?
207207
fieldTypeHasLabel(field) {
208+
if(isNil(field.label)) return false;
209+
208210
let relevantType = "";
209211
if (field.type === "input") {
210212
relevantType = field.inputType;

0 commit comments

Comments
 (0)