Slate: React does not recognize the 'renderMark' prop on a DOM element

Created on 19 Aug 2019  路  7Comments  路  Source: ianstormtaylor/slate

Do you want to request a _feature_ or report a _bug_?

bug

What's the current behavior?

slate: v0.47.6
slate-react: v0.22.6

https://imgur.com/a/POO5Rnc

What's the expected behavior?

Error did not occur in slate: v0.47.4 and slate-react: v0.22.4

Most helpful comment

Also complains about renderBlock

All 7 comments

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!!

Screenshot 2020-12-11 at 15 03 53

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianstormtaylor picture ianstormtaylor  路  3Comments

varoot picture varoot  路  3Comments

ezakto picture ezakto  路  3Comments

yalu picture yalu  路  3Comments

bunterWolf picture bunterWolf  路  3Comments