question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

area below timeline resources available for dateClick

See original GitHub issue

When filterResourcesWithEvents is set to true, dayClick is not triggering when there are no visible resources. Is this a bug or a feature? Any workaround?

https://codepen.io/anon/pen/aGyPPr Works on May 4th (as there are visible resources) Doesn’t work on May 6th (as there are NO visible resources)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
arshawcommented, Jun 10, 2018

hi @lorinkoz , @acerix 's explanation was a potential workaround that you’d hypothetically be able to implement, however, now that I’m trying to step through exactly how you might do it, it seems rather unreasonable/impossible.

Acerix was right: the dayClick handler was only meant to be fired if the click happens on a time slot that’s associated with a resource. Changing this behavior for a 3.x release would be a bad idea because it would break compatibility. I’l consider a solution that addresses this for v4.

In the meantime, I can suggest a workaround, but it’s more of a UI workaround than a code workaround… I assume you pop up some type of dialog box after the user clicks the time slots they desire. You probably ask for the new event’s name or other data. What you can do is attach a click handler that fires when we know there is no resources for the current day. Then, you could pop up your dialog and make sure to ask the user for the time of their event in the dialog.

I wrote a way to achieve this at the bottom of your js bin: https://codepen.io/anon/pen/VdPozq?editors=0010

Does that make sense?

0reactions
lorinkozcommented, Jun 21, 2018

Not sure why in my code it’s overriding normal eventClick. Gotta investigate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dateClick - Docs - FullCalendar
dateClick ; An HTML element that represents the whole-day that was clicked on. · The native JavaScript event with low-level information such as...
Read more >
Mac | Online Resources
On this part of the website, you have free access to up to date click-by-click instructions for NVivo on Mac. Simply click on...
Read more >
How Project schedules tasks: Behind the scenes
To find the Project start date or to change it to another date, click Project, and then click Project Information. Of course, there...
Read more >
Resources for Current Users of the Colorado Performance ...
This page is organized as an example timeline of common activities within COPMS to ... The below webinars are short training videos intended...
Read more >
Revised Interim Enforcement Procedures for Reporting ...
By telephone or in person to the OSHA Area Office that is nearest to the site of ... Additional resources are available at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found