FIX: html not showing in select-box header
This commit is contained in:
parent
918f5045b4
commit
5d12db1fb5
|
@ -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
|
||||||
|
|
|
@ -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"}}
|
||||||
|
|
Loading…
Reference in New Issue