fix(schedule): close on click #7143 (#7148)

pull/7162/head
Esaú Morais 2023-02-16 17:42:41 -03:00 committed by GitHub
parent f4c849b75c
commit 3df289b557
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ const CopyButton = ({
disabled={parseInt(getValuesFromDayRange.replace(fieldArrayName + ".", ""), 10)} disabled={parseInt(getValuesFromDayRange.replace(fieldArrayName + ".", ""), 10)}
onClick={(selected) => { onClick={(selected) => {
selected.forEach((day) => setValue(`${fieldArrayName}.${day}`, getValues(getValuesFromDayRange))); selected.forEach((day) => setValue(`${fieldArrayName}.${day}`, getValues(getValuesFromDayRange)));
setOpen(false);
}} }}
onCancel={() => setOpen(false)} onCancel={() => setOpen(false)}
/> />