Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

How to catch event when value is removed (emptied) for single calendar? #68

Closed
darklow opened this issue Oct 26, 2016 · 5 comments
Closed
Assignees

Comments

@darklow
Copy link

darklow commented Oct 26, 2016

Now callback event is being fired only when value is set for single calendar.
How to catch change event when value is deleted?
Thank you.

@kalepail
Copy link
Contributor

kalepail commented Nov 1, 2016

Hmm good question. I'll have to take a look at that.

@kalepail kalepail self-assigned this Jan 19, 2017
@kalepail
Copy link
Contributor

33e4aaf

@straube
Copy link

straube commented Jun 28, 2017

@tyvdh it seems like the current_date has a value – the latest selected date – even when I empty the calendar. I took a look at the available properties and at 33e4aaf but I couldn't find anything that can tell me there is no date selected. Am I missing something?

Thanks! :)

@kalepail
Copy link
Contributor

@straube That's true. This is due to some restrictions within the code itself needing to keep some reference of a date. You can however use this.selected.innerText inside the callback to determine if there is a value currently selected.

@straube
Copy link

straube commented Jun 28, 2017

@tyvdh just gave it a try and it worked! 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants