publish: scroll markdown editor correctly

This commit is contained in:
Liam Fitzgerald 2020-09-09 08:26:03 +10:00
parent 149ffd32e6
commit c3a2e66412

View File

@ -12,7 +12,7 @@ export const MarkdownField = ({ id, ...rest }: { id: string; } & Parameters<type
const [{ value }, { error, touched }, { setValue, setTouched }] = useField(id);
return (
<Box height="100%" width="100%" display="flex" flexDirection="column" {...rest}>
<Box overflowY="hidden" height="100%" width="100%" display="flex" flexDirection="column" {...rest}>
<MarkdownEditor
onFocus={() => setTouched(true)}
onBlur={() => setTouched(false)}