stuff
This commit is contained in:
parent
6e8a4cf18c
commit
b6bda93d28
|
@ -5555,6 +5555,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
return BDFDB.ReactUtils.createElement(NativeSubComponents.ContextMenuToggleItem, Object.assign({}, this.props, {action: this.handleToggle.bind(this)}));
|
return BDFDB.ReactUtils.createElement(NativeSubComponents.ContextMenuToggleItem, Object.assign({}, this.props, {action: this.handleToggle.bind(this)}));
|
||||||
}
|
}
|
||||||
} : undefined;
|
} : undefined;
|
||||||
|
LibraryComponents.FavButton = BDFDB.ModuleUtils.findByName("GIFFavButton");
|
||||||
LibraryComponents.Flex = BDFDB.ModuleUtils.findByProperties("Wrap", "Direction", "Child");
|
LibraryComponents.Flex = BDFDB.ModuleUtils.findByProperties("Wrap", "Direction", "Child");
|
||||||
LibraryComponents.FormComponents = BDFDB.ModuleUtils.findByProperties("FormSection", "FormText");
|
LibraryComponents.FormComponents = BDFDB.ModuleUtils.findByProperties("FormSection", "FormText");
|
||||||
LibraryComponents.IconBadge = BDFDB.ModuleUtils.findByName("IconBadge");
|
LibraryComponents.IconBadge = BDFDB.ModuleUtils.findByName("IconBadge");
|
||||||
|
@ -5594,6 +5595,7 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
} : undefined;
|
} : undefined;
|
||||||
LibraryComponents.PopoutContainer = reactInitialized ? class BDFDB_PopoutContainer extends LibraryModules.React.Component {
|
LibraryComponents.PopoutContainer = reactInitialized ? class BDFDB_PopoutContainer extends LibraryModules.React.Component {
|
||||||
handleRender(e) {
|
handleRender(e) {
|
||||||
|
console.log(e);
|
||||||
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Popout, {
|
return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Popout, {
|
||||||
className: this.props.popoutClassName,
|
className: this.props.popoutClassName,
|
||||||
isChild: true,
|
isChild: true,
|
||||||
|
@ -5617,7 +5619,8 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
className: BDFDB.disCN.popoutcontainer,
|
className: BDFDB.disCN.popoutcontainer,
|
||||||
onClick: e => {
|
onClick: e => {
|
||||||
let basePopoutIns = BDFDB.ReactUtils.findOwner(e._targetInst, {name:"BasePopout", up:true});
|
let basePopoutIns = BDFDB.ReactUtils.findOwner(e._targetInst, {name:"BasePopout", up:true});
|
||||||
if (basePopoutIns) basePopoutIns.handleClick();
|
if (basePopoutIns && (!basePopoutIns.domElementRef.current || basePopoutIns.domElementRef.current.contains(e.target))) basePopoutIns.handleClick();
|
||||||
|
else BDFDB.ListenerUtils.stopEvent(e);
|
||||||
},
|
},
|
||||||
children: BDFDB.ReactUtils.createElement(NativeSubComponents.PopoutContainer, Object.assign({}, this.props, {renderPopout: this.handleRender.bind(this)}))
|
children: BDFDB.ReactUtils.createElement(NativeSubComponents.PopoutContainer, Object.assign({}, this.props, {renderPopout: this.handleRender.bind(this)}))
|
||||||
});
|
});
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue