FIX: ensures events have access to correct context (#7621)
This commit is contained in:
parent
b1d3c678ca
commit
bc14452585
|
@ -148,17 +148,17 @@ export default Ember.Mixin.create({
|
||||||
didInsertElement() {
|
didInsertElement() {
|
||||||
this._super(...arguments);
|
this._super(...arguments);
|
||||||
|
|
||||||
$(document).on("mousedown.select-kit", this._mouseDownHandler);
|
$(document).on("mousedown.select-kit", this._mouseDownHandler.bind(this));
|
||||||
|
|
||||||
this.$header()
|
this.$header()
|
||||||
.on("blur.select-kit", this._blurHeaderHandler.bind(this))
|
.on("blur.select-kit", this._blurHeaderHandler.bind(this))
|
||||||
.on("focus.select-kit", this._focusHeaderHandler.bind(this))
|
.on("focus.select-kit", this._focusHeaderHandler.bind(this))
|
||||||
.on("keydown.select-kit", this._keydownHeaderHandler.bind(this))
|
.on("keydown.select-kit", this._keydownHeaderHandler.bind(this))
|
||||||
.on("keypress.select-kit", this._keypressHeaderHandler);
|
.on("keypress.select-kit", this._keypressHeaderHandler.bind(this));
|
||||||
|
|
||||||
this.$filterInput()
|
this.$filterInput()
|
||||||
.on("change.select-kit", this._changeFilterInputHandler.bind(this))
|
.on("change.select-kit", this._changeFilterInputHandler.bind(this))
|
||||||
.on("keypress.select-kit", this._keypressFilterInputHandler)
|
.on("keypress.select-kit", this._keypressFilterInputHandler.bind(this))
|
||||||
.on("focusout.select-kit", this._focusoutFilterInputHandler.bind(this))
|
.on("focusout.select-kit", this._focusoutFilterInputHandler.bind(this))
|
||||||
.on("keydown.select-kit", this._keydownFilterInputHandler.bind(this));
|
.on("keydown.select-kit", this._keydownFilterInputHandler.bind(this));
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue