stuff
This commit is contained in:
parent
e22e0a923d
commit
e083dbee9b
|
@ -1775,7 +1775,7 @@
|
|||
return reactEle;
|
||||
};
|
||||
BDFDB.ReactUtils.forceStyle = function (reactEle, styles) {
|
||||
if (!BDFDB.ReactUtils.isValidElement(reactEle) || !BDFDB.ObjectUtils.is(reactEle.props.style) || !BDFDB.ArrayUtils.is(styles) || !styles.length) return;
|
||||
if (!BDFDB.ReactUtils.isValidElement(reactEle) || !BDFDB.ObjectUtils.is(reactEle.props.style) || !BDFDB.ArrayUtils.is(styles) || !styles.length) return null;
|
||||
let ref = reactEle.ref;
|
||||
reactEle.ref = instance => {
|
||||
if (typeof ref == "function") ref(instance);
|
||||
|
@ -1785,6 +1785,7 @@
|
|||
if (propValue != null) node.style.setProperty(key, propValue, "important");
|
||||
}
|
||||
};
|
||||
return reactEle;
|
||||
};
|
||||
BDFDB.ReactUtils.findChild = function (nodeOrInstance, config) {
|
||||
if (!nodeOrInstance || !BDFDB.ObjectUtils.is(config) || !config.name && !config.key && !config.props && !config.filter) return config.all ? [] : null;
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue