stuff
This commit is contained in:
parent
557f78140c
commit
2f97d6760f
|
@ -7039,12 +7039,17 @@ var BDFDB = {
|
||||||
let child = (BDFDB.ArrayUtils.is(this.props.children) ? this.props.children[0] : this.props.children) || BDFDB.ReactUtils.createElement("div", {});
|
let child = (BDFDB.ArrayUtils.is(this.props.children) ? this.props.children[0] : this.props.children) || BDFDB.ReactUtils.createElement("div", {});
|
||||||
child.props.className = BDFDB.DOMUtils.formatClassName(child.props.className, this.props.className);
|
child.props.className = BDFDB.DOMUtils.formatClassName(child.props.className, this.props.className);
|
||||||
let childMouseEnter = child.props.onMouseEnter, childMouseLeave = child.props.onMouseLeave, childClick = child.props.onClick, childContextMenu = child.props.onContextMenu;
|
let childMouseEnter = child.props.onMouseEnter, childMouseLeave = child.props.onMouseLeave, childClick = child.props.onClick, childContextMenu = child.props.onContextMenu;
|
||||||
|
let shown = false;
|
||||||
child.props.onMouseEnter = (e, childthis) => {
|
child.props.onMouseEnter = (e, childthis) => {
|
||||||
BDFDB.TooltipUtils.create(e.currentTarget, this.props.text, Object.assign({}, this.props.tooltipConfig));
|
if (!shown) {
|
||||||
if (typeof this.props.onMouseEnter == "function") this.props.onMouseEnter(e, this);
|
shown = true;
|
||||||
if (typeof childMouseEnter == "function") childMouseEnter(e, childthis);
|
BDFDB.TooltipUtils.create(e.currentTarget, this.props.text, Object.assign({}, this.props.tooltipConfig));
|
||||||
|
if (typeof this.props.onMouseEnter == "function") this.props.onMouseEnter(e, this);
|
||||||
|
if (typeof childMouseEnter == "function") childMouseEnter(e, childthis);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
child.props.onMouseLeave = (e, childthis) => {
|
child.props.onMouseLeave = (e, childthis) => {
|
||||||
|
shown = false;
|
||||||
if (typeof this.props.onMouseLeave == "function") this.props.onMouseLeave(e, this);
|
if (typeof this.props.onMouseLeave == "function") this.props.onMouseLeave(e, this);
|
||||||
if (typeof childMouseLeave == "function") child.props.onMouseLeave(e, childthis);
|
if (typeof childMouseLeave == "function") child.props.onMouseLeave(e, childthis);
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue