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:
parent
b78f6546cd
commit
45bc55a076
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user