react-markdown-editor-lite
react-markdown-editor-lite copied to clipboard
[BUG] onChange gets called twice
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.
我也遇到这个问题,配置onChangeTrigger
也没有效果,看了下源码,发现源码文件node_modules\react-markdown-editor-lite\esm\editor\defaultConfig.js
里面缺少了onChangeTrigger
的属性,导致在合并自定义配置时被忽略。
hello~, when this bug can be fixed in the release version?
i have this problem in ~1.3.4 version
It will be called twice when inputting for the first time.