1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-12 10:14:02 +02:00

reduce max normalizations guard

This commit is contained in:
Ian Storm Taylor
2018-11-12 11:27:34 -08:00
parent b78f6546cd
commit 45bc55a076

View File

@@ -561,7 +561,7 @@ function normalizeNodeByPath(editor, path) {
let { document } = value let { document } = value
let node = document.assertNode(path) let node = document.assertNode(path)
let iterations = 0 let iterations = 0
const max = 1000 + (node.object === 'text' ? 1 : node.nodes.size) const max = 100 + (node.object === 'text' ? 1 : node.nodes.size)
const iterate = () => { const iterate = () => {
const fn = node.normalize(controller) const fn = node.normalize(controller)