fix all day checkbox
This commit is contained in:
@ -379,6 +379,7 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
|
|||||||
isChecked: e.target.checked,
|
isChecked: e.target.checked,
|
||||||
}));
|
}));
|
||||||
setSlots(updatedSlots);
|
setSlots(updatedSlots);
|
||||||
|
setAllDay(e.target.checked)
|
||||||
console.log("handleAllDayChange: allDay: " + allDay + ", updatedSlots: " + JSON.stringify(updatedSlots));
|
console.log("handleAllDayChange: allDay: " + allDay + ", updatedSlots: " + JSON.stringify(updatedSlots));
|
||||||
};
|
};
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -418,7 +419,7 @@ export default function AvailabilityForm({ publisherId, existingItem, inline, on
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<label className="checkbox-container flex items-center mb-4">
|
<label className="checkbox-container flex items-center mb-4">
|
||||||
<input type="checkbox" checked={allDay} onChange={e => setAllDay(e.target.checked)} className="form-checkbox h-5 w-5 text-gray-600 mx-2" />
|
<input type="checkbox" checked={allDay} onChange={e => handleAllDayChange(e)} className="form-checkbox h-5 w-5 text-gray-600 mx-2" />
|
||||||
Цял ден
|
Цял ден
|
||||||
<span className="checkmark"></span>
|
<span className="checkmark"></span>
|
||||||
</label>
|
</label>
|
||||||
|
Reference in New Issue
Block a user