Skip to content

Commit ee1c241

Browse files
committed
1 parent a500123 commit ee1c241

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jodit-react",
3-
"version": "5.3.7",
3+
"version": "5.3.8",
44
"description": "Jodit is awesome and usefully wysiwyg editor with filebrowser",
55
"main": "build/jodit-react.js",
66
"module": "./build/esm/index.mjs",

src/JoditEditor.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ function usePrevious(value: string): string {
1010
useEffect(() => {
1111
ref.current = value;
1212
}, [value]);
13+
14+
// eslint-disable-next-line react-hooks/refs
1315
return ref.current;
1416
}
1517

tests/ref.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Ref Test', () => {
2222
act(() => {
2323
elm.rerender(<App />);
2424
});
25-
25+
2626
await act(async () => {});
2727

2828
expect(ref.current?.isJodit).toBe(true);

0 commit comments

Comments
 (0)