Skip to content
Snippets Groups Projects
Commit bed34a59 authored by rhenck's avatar rhenck
Browse files

[editor] Fix likert-row preset input in edit dialog

Explicitly define a label to be shown, since the shown label is done via 
innerHTML.
parent e112bd1e
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,10 @@ import { TextLabel } from 'common/models/elements/label-interfaces'; ...@@ -26,6 +26,10 @@ import { TextLabel } from 'common/models/elements/label-interfaces';
<mat-form-field appearance="fill"> <mat-form-field appearance="fill">
<mat-label>{{'preset' | translate }}</mat-label> <mat-label>{{'preset' | translate }}</mat-label>
<mat-select [(ngModel)]="newLikertRow.value"> <mat-select [(ngModel)]="newLikertRow.value">
<mat-select-trigger
[innerHTML]="newLikertRow.value !== null ?
'<span>' + data.options[newLikertRow.value].text + '</span>' : 'undefiniert' | safeResourceHTML">
</mat-select-trigger>
<mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option> <mat-option [value]="null">{{'propertiesPanel.undefined' | translate }}</mat-option>
<mat-option *ngFor="let column of data.options; let i = index" [value]="i" <mat-option *ngFor="let column of data.options; let i = index" [value]="i"
[innerHTML]="'<span>' + column.text + ' (Index: ' + i + ')</span>' | safeResourceHTML"> [innerHTML]="'<span>' + column.text + ' (Index: ' + i + ')</span>' | safeResourceHTML">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment