FIX #144343. Update output items will re-render the cell output.

This commit is contained in:
rebornix
2022-03-18 10:50:03 -07:00
parent 50c8eb444d
commit 9d673ebe34
7 changed files with 131 additions and 22 deletions

View File

@@ -138,6 +138,9 @@ function renderStream(outputInfo: OutputItem, container: HTMLElement, error: boo
const text = outputInfo.text();
truncatedArrayOfString(outputInfo.id, [text], ctx.settings.lineLimit, element);
while (container.firstChild) {
container.removeChild(container.firstChild);
}
container.appendChild(element);
container.setAttribute('output-mime-type', outputInfo.mime);
if (error) {