Added support for Node and Edge type updates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user