Added support for Node and Edge type updates
This commit is contained in:
@@ -42,6 +42,10 @@ const useElementUpdater = (propElements: Elements): void => {
|
|||||||
elementProps.isHidden = propElement.isHidden;
|
elementProps.isHidden = propElement.isHidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof propElement.type !== 'undefined') {
|
||||||
|
elementProps.type = propElement.type;
|
||||||
|
}
|
||||||
|
|
||||||
if (isNode(existingElement)) {
|
if (isNode(existingElement)) {
|
||||||
const propNode = propElement as Node;
|
const propNode = propElement as Node;
|
||||||
const nodeProps = elementProps as Node;
|
const nodeProps = elementProps as Node;
|
||||||
|
|||||||
Reference in New Issue
Block a user