Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

128
Views
Devoluciones de llamada de calendario completo

Estoy trabajando con Full Calendar con React.

este es mi codigo

 <FullCalendar ref={calendarRef} editable={true} headerToolbar={{ start: '', center: '', end: '' }} plugins={[timeGridPlugin, interaction]} initialView="timeGridWeek" selectable={true} select={onDateSelect} eventDrop={onEventDrop} eventResize={onEventResize} eventContent={(args) => renderEventContent(args)} allDaySlot={false} events={events} />

Y tengo 2 devoluciones de llamada eventDrop y eventResize

 const onEventDrop = (event) => { const slot = { ...event.event._def.extendedProps }; const delta = event.delta; slot.date = new Date(slot.date); slot.date.setHours(0, 0, 0, 0) slot.date.setDate(slot.date.getDate() + delta.days) slot.startTime += (delta.milliseconds / 1000) slot.endTime += (delta.milliseconds / 1000) updateSlot(id, slot.id, slot).then(() => { loadSlots() }).catch(() => { event.revert() }) } const onEventResize = (event) => { const slot = { ...event.event._def.extendedProps }; slot.startTime += (event.startDelta.milliseconds / 1000) slot.endTime += (event.endDelta.milliseconds / 1000) updateSlot(id, slot.id, slot).then(() => { loadSlots() }).catch(() => { event.revert() }) }

por alguna razón, los eventos no se llaman siempre, el evento en sí se arrastra y se redimensiona y se refleja en la vista. Pero la devolución de llamada no se activa. No pude encontrar la hora exacta cuando no se llama, pero a veces funciona. se detiene Probé un evento diferente y funciona, luego se detiene, en su mayoría es aleatorio

¿Hay algún error informado sobre este problema o tengo un problema en el código?

Saludos,

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!