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