update: adding isPending to the column form when loading after submit so that it becomes read only in question management

This commit is contained in:
falendikategar 2024-10-29 14:55:58 +07:00
parent 4033f4e219
commit 2248cc9a60

View File

@ -286,6 +286,7 @@ export default function QuestionFormModal() {
placeholder="Jawaban" placeholder="Jawaban"
readOnly={formType === "detail"} readOnly={formType === "detail"}
{...form.getInputProps(`options.${index}.text`)} {...form.getInputProps(`options.${index}.text`)}
disabled={mutation.isPending}
required required
/> />
<NumberInput <NumberInput
@ -297,6 +298,7 @@ export default function QuestionFormModal() {
allowDecimal={false} allowDecimal={false}
allowNegative={false} allowNegative={false}
{...form.getInputProps(`options.${index}.score`)} {...form.getInputProps(`options.${index}.score`)}
disabled={mutation.isPending}
required required
/> />
{formType !== "detail" && ( {formType !== "detail" && (