This got broken during the TypeScript migration, because the constructor's
`labelId` parameter is typed as string, but in reality it was passed an
integer. This broke a `===` comparison with the `data-label-id` property of the
list items, thus failing to properly select the label.
new FormBuilderFieldLabel(
'{@$field->getPrefixedId()}',
- {if $field->getValue()}{@$field->getValue()}{else}null{/if},
+ {if $field->getValue()}'{$field->getValue()|encodeJS}'{else}null{/if},
{
forceSelection: {if $field->getLabelGroup()->forceSelection}true{else}false{/if}
}
new FormBuilderFieldLabel(
'{@$field->getPrefixedId()}',
- {if $field->getValue()}{@$field->getValue()}{else}null{/if},
+ {if $field->getValue()}'{$field->getValue()|encodeJS}'{else}null{/if},
{
forceSelection: {if $field->getLabelGroup()->forceSelection}true{else}false{/if}
}