mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: allows forcing unsafe string in select-kit (#6386)
forceEscape will be defaulted to true before next release.
This commit is contained in:
@ -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", []);
|
||||
|
||||
|
Reference in New Issue
Block a user