parent
f4c849b75c
commit
3df289b557
|
@ -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)}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Reference in New Issue