From 85f0149c027ed5441305423956655f733daf20f3 Mon Sep 17 00:00:00 2001 From: Julia Nguyen <julianguyen@users.noreply.github.com> Date: Sat, 4 Jan 2025 17:38:17 -0800 Subject: [PATCH] Fix InputTextarea regression (#2344) --- app/assets/stylesheets/dashboard/dashboard_section.scss | 1 - client/app/components/Input/InputTextarea.jsx | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/stylesheets/dashboard/dashboard_section.scss b/app/assets/stylesheets/dashboard/dashboard_section.scss index e9d3c9aae..2c65b5f06 100644 --- a/app/assets/stylesheets/dashboard/dashboard_section.scss +++ b/app/assets/stylesheets/dashboard/dashboard_section.scss @@ -46,7 +46,6 @@ margin: $size-10 $size-0 $size-0 $size-0; padding-left: $size-0; width: 100%; - display: flex; flex-direction: column; align-items: center; diff --git a/client/app/components/Input/InputTextarea.jsx b/client/app/components/Input/InputTextarea.jsx index 8905c277d..17ae94a4e 100644 --- a/client/app/components/Input/InputTextarea.jsx +++ b/client/app/components/Input/InputTextarea.jsx @@ -117,7 +117,8 @@ export function InputTextarea(props: Props): Node { }); editor.current.content.innerHTML = value; } - }, [value]); + // eslint-disable-next-line react-hooks/exhaustive-deps + }, []); return ( <div