mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Don't parse TEXTAREA child nodes (Edge bug)
This commit is contained in:
parent
12672839f1
commit
0224592a96
@ -69,6 +69,8 @@ const parseNodeTree = (
|
|||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
inlineSelectElement(childNode, container);
|
inlineSelectElement(childNode, container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const SHOULD_TRAVERSE_CHILDREN = childNode.tagName !== 'TEXTAREA';
|
||||||
const treatAsRealStackingContext = createsRealStackingContext(
|
const treatAsRealStackingContext = createsRealStackingContext(
|
||||||
container,
|
container,
|
||||||
childNode
|
childNode
|
||||||
@ -86,10 +88,14 @@ const parseNodeTree = (
|
|||||||
treatAsRealStackingContext
|
treatAsRealStackingContext
|
||||||
);
|
);
|
||||||
parentStack.contexts.push(childStack);
|
parentStack.contexts.push(childStack);
|
||||||
parseNodeTree(childNode, container, childStack, imageLoader);
|
if (SHOULD_TRAVERSE_CHILDREN) {
|
||||||
|
parseNodeTree(childNode, container, childStack, imageLoader);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
stack.children.push(container);
|
stack.children.push(container);
|
||||||
parseNodeTree(childNode, container, stack, imageLoader);
|
if (SHOULD_TRAVERSE_CHILDREN) {
|
||||||
|
parseNodeTree(childNode, container, stack, imageLoader);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user