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) {
headerText = Ember.get(Category.findUncategorized(), this.get("textKey"));
} else {
headerText = I18n.t("category.choose");
headerText = I18n.t("category.choose").htmlSafe();
}
} else {
headerText = this.get("selectedContent.text");
}
this.set("headerText", Handlebars.escapeExpression(headerText));
this.set("headerText", headerText);
},
// original method is kept for compatibility

View File

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