From 6e4252ab54ed5945d96678c613316401eb9e87b8 Mon Sep 17 00:00:00 2001 From: Ali Bosworth Date: Fri, 27 Mar 2020 11:18:17 -0400 Subject: [PATCH] Fix new function signature of handleBeforeInput Found this here https://github.com/ngs/draft-js-markdown-shortcuts-plugin/pull/62 It is required to use with new draft --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a1638fc..1b9f48f 100755 --- a/src/index.js +++ b/src/index.js @@ -134,7 +134,7 @@ const createMarkdownShortcutsPlugin = (config = { insertEmptyBlockOnReturnWithMo } return 'not-handled'; }, - handleBeforeInput(character, editorState, { setEditorState }) { + handleBeforeInput(character, editorState, eventTimeStamp, { setEditorState }) { if (character.match(/[A-z0-9_*~`]/)) { return 'not-handled'; }