Move details styling into its own component.

This commit is contained in:
Paul
2021-07-04 09:52:34 +01:00
parent e0b9567c96
commit 12b04a9832
4 changed files with 32 additions and 29 deletions

View File

@@ -23,6 +23,7 @@ export default function TextAreaAutoSize(props: TextAreaAutoSizeProps) {
const ref = useRef<HTMLTextAreaElement>();
useEffect(() => {
if (isTouchscreenDevice) return;
autoFocus && ref.current.focus();
}, [value]);