This commit is contained in:
Mirco Wittrien 2020-07-26 19:48:19 +02:00
parent e22e0a923d
commit e083dbee9b
2 changed files with 3 additions and 2 deletions

View File

@ -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