react-markdown-editor-lite icon indicating copy to clipboard operation
react-markdown-editor-lite copied to clipboard

[BUG] onChange gets called twice

Open kimgysen opened this issue 2 years ago • 4 comments

OS and browser

MacOSX 10.15.7, Chrome 96.0.4664.110.

Description

Great library! onChange callback gets called twice as seen in the console.

Reproduction URL

https://codesandbox.io/s/rmel-demo-ref-in-function-component-u04gb?file=/src/App.js The same as in the demo on your frontpage.

Bit strange it was not noticed. I verified the issues tracker, but didn't find another mention of this bug. Otherwise it's my pc.

kimgysen avatar Dec 16 '21 14:12 kimgysen

我也遇到这个问题,配置onChangeTrigger也没有效果,看了下源码,发现源码文件node_modules\react-markdown-editor-lite\esm\editor\defaultConfig.js里面缺少了onChangeTrigger的属性,导致在合并自定义配置时被忽略。

kiinlam avatar Jan 24 '22 07:01 kiinlam

hello~, when this bug can be fixed in the release version?

goasleep avatar Jun 19 '22 07:06 goasleep

i have this problem in ~1.3.4 version

lush-99 avatar Oct 17 '23 09:10 lush-99

It will be called twice when inputting for the first time.

lush-99 avatar Oct 17 '23 09:10 lush-99