REVERT: partly revert change to ensure context is the same (#10012)

This commit is contained in:
Joffrey JAFFEUX 2020-06-10 11:10:39 +02:00 committed by GitHub
parent a3dfd553a1
commit 8fe074430b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -336,12 +336,12 @@ export default class Widget {
sendWidgetAction(name, param) {
return this.rerenderResult(() => {
const widgetFunction = this.callWidgetFunction(name, param);
const widget = this._findAncestorWithProperty(name);
if (widget) {
return widget[name].call(widget, param);
}
return (
widgetFunction ||
this._sendComponentAction(name, param || this.findAncestorModel())
);
return this._sendComponentAction(name, param || this.findAncestorModel());
});
}