feat: 퀴즈, 채팅 인풋 최대 길이 설정
This commit is contained in:
parent
5555121f61
commit
9a0aabe601
@ -115,6 +115,7 @@ export default function ChatRoom({ isTeacher, ...props }) {
|
||||
<input
|
||||
className="lk-form-control lk-chat-form-input"
|
||||
disabled={isSending}
|
||||
maxLength={200}
|
||||
ref={chatInputRef}
|
||||
type="text"
|
||||
placeholder="메시지"
|
||||
|
@ -36,6 +36,7 @@ export default function Quiz({ question, image, choices = [], setAnswers }) {
|
||||
<input
|
||||
type="text"
|
||||
autoFocus
|
||||
maxLength={50}
|
||||
placeholder="답 입력"
|
||||
onChange={(e) => {
|
||||
setAnswers(e.target.value);
|
||||
|
@ -168,7 +168,7 @@ export default function QuizCard({ quiz, updateQuiz, deleteQuiz }) {
|
||||
<input
|
||||
className={`${styles.input} ${styles.choiceInput}`}
|
||||
type="text"
|
||||
maxLength={200}
|
||||
maxLength={50}
|
||||
value={choice.content}
|
||||
onChange={(e) => handleChoiceChange(choice.num, e.target.value)}
|
||||
placeholder={`보기 ${choice.num}`}
|
||||
@ -196,7 +196,7 @@ export default function QuizCard({ quiz, updateQuiz, deleteQuiz }) {
|
||||
<input
|
||||
type="text"
|
||||
value={answer}
|
||||
maxLength={200}
|
||||
maxLength={50}
|
||||
onChange={(e) => {
|
||||
setAnswer(e.target.value);
|
||||
updateQuiz(quiz.id, { ...quiz, question, answer: e.target.value, choices, image });
|
||||
|
Loading…
Reference in New Issue
Block a user