FIX: html not showing in select-box header

This commit is contained in:
Joffrey JAFFEUX 2017-08-26 02:44:36 +02:00 committed by GitHub
parent 918f5045b4
commit 5d12db1fb5
2 changed files with 3 additions and 3 deletions

View File

@ -44,13 +44,13 @@ export default SelectBoxComponent.extend({
if (this.siteSettings.allow_uncategorized_topics) { if (this.siteSettings.allow_uncategorized_topics) {
headerText = Ember.get(Category.findUncategorized(), this.get("textKey")); headerText = Ember.get(Category.findUncategorized(), this.get("textKey"));
} else { } else {
headerText = I18n.t("category.choose"); headerText = I18n.t("category.choose").htmlSafe();
} }
} else { } else {
headerText = this.get("selectedContent.text"); headerText = this.get("selectedContent.text");
} }
this.set("headerText", Handlebars.escapeExpression(headerText)); this.set("headerText", headerText);
}, },
// original method is kept for compatibility // original method is kept for compatibility

View File

@ -3,7 +3,7 @@
{{/if}} {{/if}}
<span class="current-selection"> <span class="current-selection">
{{{text}}} {{text}}
</span> </span>
{{d-icon caretIcon class="caret-icon"}} {{d-icon caretIcon class="caret-icon"}}