Exam Edit on ExamList

This commit is contained in:
Carlos-Mesquita
2024-11-27 02:01:50 +00:00
parent ca5977e78b
commit a2a513077f
13 changed files with 199 additions and 53 deletions

View File

@@ -1,11 +1,11 @@
import React, { useEffect, useRef, ChangeEvent } from 'react';
import React, { useRef, useEffect, ChangeEvent } from 'react';
interface Props {
value: string;
onChange: (value: string) => void;
className?: string;
placeholder?: string;
disabled?: boolean;
onChange: (value: string) => void;
onBlur?: () => void;
}
@@ -41,7 +41,7 @@ const AutoExpandingTextArea: React.FC<Props> = ({
return (
<textarea
ref={textareaRef}
value={value}
value={value.replace(/\\n/g, '\n')}
onChange={handleChange}
className={className}
placeholder={placeholder}