Added support for Node and Edge type updates

This commit is contained in:
Stojan Stamkov
2020-09-04 21:04:53 +02:00
committed by GitHub
parent fb2da7a3ee
commit fa193bddfc
+4
View File
@@ -41,6 +41,10 @@ const useElementUpdater = (propElements: Elements): void => {
if (typeof propElement.isHidden !== 'undefined') {
elementProps.isHidden = propElement.isHidden;
}
if (typeof propElement.type !== 'undefined') {
elementProps.type = propElement.type;
}
if (isNode(existingElement)) {
const propNode = propElement as Node;