Skip to content

Commit eb0936d

Browse files
authored
Merge pull request #1032 from navikt/bugfix/required-label-on-panel
Problem with required label on panel and double labels in builder
2 parents 3d48a29 + def13e0 commit eb0936d

File tree

1 file changed

+1
-1
lines changed
  • packages/shared-components/src/formio/template/templates/navdesign/field

1 file changed

+1
-1
lines changed

packages/shared-components/src/formio/template/templates/navdesign/field/form.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="description" id="d-{{ctx.instance.id}}-{{ctx.component.key}}">{{ctx.t(ctx.component.description, { _userInput: true })}}</div>
66
{% } %}
77

8-
{% if (ctx.builder || (ctx.component.label && !ctx.component.hideLabel && ctx.component.type !== "radio" && ctx.component.type !== "container" && ctx.component.type !== "alertstripe" && ctx.component.type !== "selectboxes" && ctx.component.type !== "navCheckbox" && ctx.component.type !== "datagrid" && ctx.component.type !== "navSkjemagruppe" && !ctx.component.isNavCheckboxPanel)) { %}
8+
{% if (ctx.component.label && ((ctx.builder || !ctx.component.hideLabel) && ctx.component.type !== "radio" && ctx.component.type !== "container" && ctx.component.type !== "alertstripe" && ctx.component.type !== "selectboxes" && ctx.component.type !== "navCheckbox" && ctx.component.type !== "datagrid" && ctx.component.type !== "navSkjemagruppe" && !ctx.component.isNavCheckboxPanel)) { %}
99
{{ ctx.labelMarkup }}
1010
{% } %}
1111

0 commit comments

Comments
 (0)