bug
slate: v0.47.6
slate-react: v0.22.6
Error did not occur in slate: v0.47.4 and slate-react: v0.22.4
same here and renderInline are also buged
Also complains about renderBlock
Need to make changes to the file /packages/slate-react/src/components/editor.js
static propTypes = {
autoCorrect: Types.bool,
autoFocus: Types.bool,
className: Types.string,
decorateNode: Types.func,
defaultValue: SlateTypes.value,
id: Types.string,
onChange: Types.func,
options: Types.object,
placeholder: Types.any,
plugins: Types.array,
readOnly: Types.bool,
renderAnnotation: Types.func,
renderBlock: Types.func,
renderDecoration: Types.func,
renderDocument: Types.func,
renderEditor: Types.func,
renderInline: Types.func,
renderMark: Types.func,
role: Types.string,
schema: Types.object,
spellCheck: Types.bool,
style: Types.object,
tabIndex: Types.number,
value: SlateTypes.value,
...EVENT_HANDLERS.reduce((obj, handler) => {
obj[handler] = Types.func
return obj
}, {}),
}
I believe this is related to #2951 as well.
Along with this bug, Firefox (Desktop) editing is buggy. After entering the second letter the cursor will jump back to the start of the block and/or the last mark.
I get this behavior right now at https://www.slatejs.org/#/rich-text when using Firefox.
I still get this warning. Perhaps the fix was not published to npm?
Plus one for this not working - I am getting the exact same error (v.0.58.4)
I'm still getting this annoying warning all the time for setting requiredMark to false. Also, in production it still shows the mark!!

Most helpful comment
Also complains about renderBlock