1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-01-19 14:27:07 +01: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 node = document.assertNode(path)
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 fn = node.normalize(controller)