FIX: allows forcing unsafe string in select-kit (#6386)

forceEscape will be defaulted to true before next release.
This commit is contained in:
Joffrey JAFFEUX
2018-09-12 12:19:04 +02:00
committed by GitHub
parent 2cc48cfd06
commit 38668818a5
16 changed files with 192 additions and 21 deletions

View File

@ -81,13 +81,22 @@ export default Ember.Component.extend(
minimum: null,
minimumLabel: null,
maximumLabel: null,
forceEscape: false,
init() {
this._super();
this.noneValue = "__none__";
this.set("headerComponentOptions", Ember.Object.create());
this.set("rowComponentOptions", Ember.Object.create());
this.set(
"headerComponentOptions",
Ember.Object.create({ forceEscape: this.get("forceEscape") })
);
this.set(
"rowComponentOptions",
Ember.Object.create({
forceEscape: this.get("forceEscape")
})
);
this.set("computedContent", []);
this.set("highlightedSelection", []);