mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:16:22 +08:00
FIX: correctly bind this
when sending a widget action
This commit is contained in:
parent
84914c5e1f
commit
66f68e8faf
|
@ -319,7 +319,7 @@ export default class Widget {
|
|||
return this.rerenderResult(() => {
|
||||
const widget = this._findAncestorWithProperty(name);
|
||||
if (widget) {
|
||||
return widget[name](param);
|
||||
return widget[name].call(widget, param);
|
||||
}
|
||||
|
||||
return this._sendComponentAction(name, param || this.findAncestorModel());
|
||||
|
|
Loading…
Reference in New Issue
Block a user