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

175
Views
Al hacer clic en el botón "agregar" dentro de la celda del calendario completo, se anula el clic del evento

El clic del campo AÑADIR EVENTO, dentro de la celda del calendario completo, se superpone al clic del evento.

Tengo un campo AGREGAR dentro de las celdas del calendario completo, que crea un enlace rápido para insertar un evento.

El problema es cuando la misma celda (día) tiene un evento.

Echo de menos el click del evento que sirve para detallar.

Necesito los dos clics para trabajar.

mi codepen

https://codepen.io/lucasmormilho/pen/qBXvaPj

 document.addEventListener('DOMContentLoaded', function() { var calendarEl = document.getElementById('calendar'); var calendar = new FullCalendar.Calendar(calendarEl, { initialView: 'dayGridMonth', initialDate: '2021-11-07', headerToolbar: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay' }, eventClick: function(){ alert("Details Event");//click details event }, dayCellDidMount: function (arg) { if (!arg.el.classList.contains("fc-day-sun") && !arg.el.classList.contains("fc-day-sat") && !arg.el.classList.contains("fc-day-past")) { var theElement = arg.el.querySelectorAll(".fc-daygrid-day-frame > .fc-daygrid-day-events")[0] setTimeout(function () { theElement.innerHTML = theElement.innerHTML + '<div class="text-center"><span style="color:Gray" onclick="AddEvento()" >ADD</span></div>'; }, 10) } }, events: [ { title: 'All Day Event', start: '2021-11-01' }, { title: 'Long Event', start: '2021-11-07', end: '2021-11-10' }, { groupId: '999', title: 'Repeating Event', start: '2021-11-09T16:00:00' }, { groupId: '999', title: 'Repeating Event', start: '2021-11-16T16:00:00' }, { title: 'Conference', start: '2021-11-11', end: '2021-11-13' }, { title: 'Meeting', start: '2021-11-12T10:30:00', end: '2021-11-12T12:30:00' }, { title: 'Lunch', start: '2021-11-12T12:00:00' }, { title: 'Meeting', start: '2021-11-12T14:30:00' }, { title: 'Birthday Party', start: '2021-11-13T07:00:00' }, { title: 'Click for Google', url: 'http://google.com/', start: '2021-11-19' } ] }); calendar.render(); }); function AddEvento() { alert("ADD EVENT"); //click ADD event };
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!