V
V
Viktor2019-01-19 13:30:50
React
Viktor, 2019-01-19 13:30:50

How to solve the problem of creating an event on every first day of the week in react-big-calendar when creating a custom week?

Hello. I really look forward to help. Faced such a problem. When creating a custom week in react-big-calendar, events are not created in all the first days of the calendar for a time that precedes the current one. All samples for creating a custom week and creating an event were taken from the office. documentation. If you use a non-custom week, events can be created on any date of the calendar. I would be very grateful for your help!
Here is the custom week:
5c4309e3514a9149573669.png
Here is the connection:
5c4309f7e2a4f220686974.png
Calendar view:
5c42fc226324f084864402.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor, 2019-01-20
@polyak-888

Maybe someone will come in handy. Change let start = date in MyWeek.range to let start = moment(date).startOf("day")._d

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question