How should the Select all functionality be implemented using the array?
#1132
-
Beta Was this translation helpful? Give feedback.
Answered by
oleksandr-danylchenko
Jan 28, 2025
Replies: 1 comment
-
|
UPD: I found that the Therefore, the if (name === 'all') {
form.setFieldValue('targetCourseIds', checked ? copyTargetIds : []);
+ await form.validateField('targetCourseIds', 'change');
return;
}That forces the validation to run and properly change the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
oleksandr-danylchenko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
UPD: I found that the
form/fieldcan be manually validated using the following methods:Therefore, the
handleCourseIdsChangecan be updated in the following way:if (name === 'all') { form.setFieldValue('targetCourseIds', checked ? copyTargetIds : []); + await form.validateField('targetCourseIds', 'change'); return; }That forces the validation to run and properly change the
canSubmitvalue!