Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event for when dateRange picked #181

Open
saulable opened this issue Nov 12, 2019 · 1 comment
Open

Event for when dateRange picked #181

saulable opened this issue Nov 12, 2019 · 1 comment

Comments

@saulable
Copy link

Hello,

I know we can code this in the onChange event. But it would be nice to have an onComplete event so when the popup disappears this event is fired, so we know the dates have been picked.

@DovahBrownies
Copy link
Contributor

@saulable - If you're looking for a quick fix, just do:

// Imaging that chosenDates = '01-01-2020 - 01-02-2020'
const chosenDatesSplit = chosenDates.split(' - ')
chosenDatesSplit[1] && console.log('An end date has been chosen')

Does that make sense?

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

No branches or pull requests

2 participants