Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-05-18 19:41:39 +02:00
parent e69d97719f
commit 317e791f29
1 changed files with 2 additions and 0 deletions

View File

@ -7573,10 +7573,12 @@ module.exports = (_ => {
child.props.onClick = (e, childThis) => {
if (typeof this.props.onClick == "function") this.props.onClick(e, this);
if (typeof childProps.onClick == "function") childProps.onClick(e, childThis);
if (typeof this.props.text == "function") this.updateTooltip(this.props.text(this));
};
child.props.onContextMenu = (e, childThis) => {
if (typeof this.props.onContextMenu == "function") this.props.onContextMenu(e, this);
if (typeof childProps.onContextMenu == "function") childProps.onContextMenu(e, childThis);
if (typeof this.props.text == "function") this.updateTooltip(this.props.text(this));
};
return BDFDB.ReactUtils.createElement(LibraryModules.React.Fragment, {
children: child