diff --git a/src/components/TextArea.jsx b/src/components/TextArea.jsx index 80266e9..675924e 100644 --- a/src/components/TextArea.jsx +++ b/src/components/TextArea.jsx @@ -28,10 +28,10 @@ function TextArea(props) { (value) => { if (!value) return; onPost && onPost({ value }); - setValue(''); + setValue(''); // setValue missing from deps if (areaRef.current) areaRef.current.focus(); }, - [onPost, value], + [onPost, value, setValue], // included setValue ); useEffect(() => { diff --git a/whatsnew.md b/whatsnew.md index fbc1624..3e59567 100644 --- a/whatsnew.md +++ b/whatsnew.md @@ -1,10 +1,10 @@ -## 2.5.0 +## 2.5.1 - Using React Core v2.5.1 ## 2.5.0 -- Using SveltReacte Core v2.5.0 +- Using Svelte Core v2.5.0 ## 2.4.3