Skip to content

Commit e242527

Browse files
committed
released v3.12.1 (#374)
1 parent daab257 commit e242527

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@uiw/react-md-editor",
3-
"version": "3.12.0",
3+
"version": "3.12.1",
44
"description": "A markdown editor with preview, implemented with React.js and TypeScript.",
55
"homepage": "https://uiwjs.github.io/react-md-editor/",
66
"author": "kenny wang <[email protected]>",

src/Editor.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,9 @@ const InternalMDEditor = (
220220
);
221221
// eslint-disable-next-line react-hooks/exhaustive-deps
222222
useMemo(() => height !== state.height && dispatch({ height: height }), [height]);
223-
// eslint-disable-next-line react-hooks/exhaustive-deps
224223
useMemo(
225224
() => height !== state.height && onHeightChange && onHeightChange(state.height, height, state),
226-
[height, state.height],
225+
[height, onHeightChange, state],
227226
);
228227

229228
const textareaDomRef = useRef<HTMLDivElement>();

0 commit comments

Comments
 (0)