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
|
||||
inlineSelectElement(childNode, container);
|
||||
}
|
||||
|
||||
const SHOULD_TRAVERSE_CHILDREN = childNode.tagName !== 'TEXTAREA';
|
||||
const treatAsRealStackingContext = createsRealStackingContext(
|
||||
container,
|
||||
childNode
|
||||
@ -86,10 +88,14 @@ const parseNodeTree = (
|
||||
treatAsRealStackingContext
|
||||
);
|
||||
parentStack.contexts.push(childStack);
|
||||
parseNodeTree(childNode, container, childStack, imageLoader);
|
||||
if (SHOULD_TRAVERSE_CHILDREN) {
|
||||
parseNodeTree(childNode, container, childStack, imageLoader);
|
||||
}
|
||||
} else {
|
||||
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