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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user