From fbf66bad9661c1123927d474573da048e380d008 Mon Sep 17 00:00:00 2001 From: Ashar Fuadi Date: Sat, 4 Nov 2023 15:22:35 +0700 Subject: [PATCH] feat(client): disable editor when skeleton is not yet modified --- .../ProblemSubmissionEditor/ProblemSubmissionEditor.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judgels-client/src/components/ProblemWorksheetCard/Programming/ProblemSubmissionEditor/ProblemSubmissionEditor.jsx b/judgels-client/src/components/ProblemWorksheetCard/Programming/ProblemSubmissionEditor/ProblemSubmissionEditor.jsx index 25c645a76..8922dbc65 100644 --- a/judgels-client/src/components/ProblemWorksheetCard/Programming/ProblemSubmissionEditor/ProblemSubmissionEditor.jsx +++ b/judgels-client/src/components/ProblemWorksheetCard/Programming/ProblemSubmissionEditor/ProblemSubmissionEditor.jsx @@ -79,7 +79,7 @@ export function ProblemSubmissionEditor({ return (
- {({ values, handleSubmit, submitting }) => { + {({ values, handleSubmit, submitting, dirty }) => { const submissionHint = getGradingLanguageEditorSubmissionHint(values.gradingLanguage); return ( @@ -99,7 +99,7 @@ export function ProblemSubmissionEditor({

)} -