React-draft-wysiwyg: Warning: onDownArrow, onTab, onUpArrow has been deprecated

Created on 12 Jul 2019  路  17Comments  路  Source: jpuri/react-draft-wysiwyg

Hi, thank you so much for this tool, it's great!
When I run the editor, I can see 3 warnings in my console:

  1. Supplying an onDownArrow prop to DraftEditor has been deprecated. If your handler needs access to the keyboard event, supply a custom keyBindingFn prop that falls back to the default one (eg. https://is.gd/RG31RJ).
  2. Supplying an onTab prop to DraftEditor has been deprecated. If your handler needs access to the keyboard event, supply a custom keyBindingFn prop that falls back to the default one (eg. https://is.gd/RG31RJ).
  3. Supplying an onUpArrow prop to DraftEditor has been deprecated. If your handler needs access to the keyboard event, supply a custom keyBindingFn prop that falls back to the default one (eg. https://is.gd/RG31RJ).

and I have these versions on my package.json:
"react": "^16.3.2"
"react-dom": "^16.3.2"
"react-draft-wysiwyg": "^1.13.2"
"draft-js": "^0.11.0"
"draftjs-to-html": "^0.8.4"

Does somebody know What to do here?
I really appreciate your help!

Most helpful comment

Update got published from draft.js 7 days ago. You could downgrade to 10.5 if you have issues other then deprecation warnings or do not want your console overflow while developing. I am looking for a long term fix as well.

All 17 comments

Update got published from draft.js 7 days ago. You could downgrade to 10.5 if you have issues other then deprecation warnings or do not want your console overflow while developing. I am looking for a long term fix as well.

@jpuri

Any suggestions with this one?

+1

+1

+1

@annammarri you can use my fork. I updated it: https://github.com/quriobot/react-draft-wysiwyg/tree/qb-changes

Hi,
Please fix this or provide a resolution. :/

+1

+1

+1

Hey guys,
Downgrade your react-draft libraries. "draft-js": "^0.10.5",
"draftjs-to-html": "^0.8.4",
"html-to-draftjs": "^1.4.0",
"react-draft-wysiwyg": "^1.13.2",

Is there any work being done towards upgrading this to consume DraftJS 0.11 instead of 0.10?
Because this is the real solution for this issue.
@wamujlb has a fork, is it possible to merge it?

I guess the real problem is #879 :(

@ferrao by downgrading you can ignore these warnings, please don't down vote if you don't know

As @ferrao said, #879 is at the root of the problem.
Unless @jpuri passes the flag to somebody else ...

@ferrao by downgrading you can ignore these warnings, please don't down vote if you don't know

I downvoted in the sense that I do not think that is the solution for the problem.
At most, that is a temporary workaround..

[email protected] has the change.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DiegoGallegos4 picture DiegoGallegos4  路  4Comments

dahudson88 picture dahudson88  路  3Comments

volkandkaya picture volkandkaya  路  3Comments

FriOne picture FriOne  路  3Comments

MaDejing picture MaDejing  路  3Comments