diff --git a/packages/frontend/components/Sidebar/Sidebar.tsx b/packages/frontend/components/Sidebar/Sidebar.tsx index 99befeec..4058dbdd 100644 --- a/packages/frontend/components/Sidebar/Sidebar.tsx +++ b/packages/frontend/components/Sidebar/Sidebar.tsx @@ -8,6 +8,7 @@ import { Text, Textarea, VStack, + TextareaProps, } from "@chakra-ui/react"; import { Image } from "@chakra-ui/react"; import { @@ -42,6 +43,9 @@ import { HelperToolTip } from "../Help"; import NUPathSection from "./NUPathSection"; import DropdownWarning from "./DropdownWarning"; import { NUPathEnum } from "@graduate/common"; +import { forwardRef } from "react"; + +import ResizeTextarea from "react-textarea-autosize"; export enum SidebarValidationStatus { Loading = "Loading", @@ -305,6 +309,25 @@ export const NoMajorSidebar: React.FC = ({ ); }; +// Still a bit buggy +const AutoResizeTextarea = forwardRef( + (props, ref) => { + return ( +