From 2b8dc55ff0bc43ab5814730b867a19a5a9fe55bb Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 31 Oct 2020 13:37:09 +0100 Subject: [PATCH] Trigger input and autosize together --- list-editor/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/list-editor/index.js b/list-editor/index.js index 5425ddc..20a7722 100644 --- a/list-editor/index.js +++ b/list-editor/index.js @@ -369,9 +369,10 @@ function editor(root, inputData, options) { currentElement.addClass('editor'); $textarea.focus() $textarea.data(cursor.getCurrent(store)) - $textarea.textareaAutoSize() currentEditor = $textarea trigger('start-editing', currentEditor[0]) + $textarea.trigger('input') + $textarea.textareaAutoSize() return $textarea }