REVERT: partly revert change to ensure context is the same (#10012)
This commit is contained in:
parent
a3dfd553a1
commit
8fe074430b
|
@ -336,12 +336,12 @@ export default class Widget {
|
||||||
|
|
||||||
sendWidgetAction(name, param) {
|
sendWidgetAction(name, param) {
|
||||||
return this.rerenderResult(() => {
|
return this.rerenderResult(() => {
|
||||||
const widgetFunction = this.callWidgetFunction(name, param);
|
const widget = this._findAncestorWithProperty(name);
|
||||||
|
if (widget) {
|
||||||
|
return widget[name].call(widget, param);
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return this._sendComponentAction(name, param || this.findAncestorModel());
|
||||||
widgetFunction ||
|
|
||||||
this._sendComponentAction(name, param || this.findAncestorModel())
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue