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

ISSUE WITH SHORTCUTS #10

Closed
Brian-beepboop opened this issue Jun 25, 2019 · 1 comment
Closed

ISSUE WITH SHORTCUTS #10

Brian-beepboop opened this issue Jun 25, 2019 · 1 comment

Comments

@Brian-beepboop
Copy link

hello, I was wondering if there was a way to implement like a "last month" shortcut button, i saw in your code you calculate it out, however, what about months with 28 or 31 days or leapyears.

also one other issue is when i select your shortcut. I still have to click on the day to have it register how would i go about fixing this

@jcsmorais
Copy link
Owner

Hi @brookesp09,

I was wondering if there was a way to implement like a "last month" shortcut button, i saw in your code you calculate it out, however, what about months with 28 or 31 days or leapyears.

I'm not sure what you mean with that - maybe it helps if you're able to provide an example?
Either way with shortcut buttons you can virtually implement whatever you want, the logic behind what a button does is really up to you.

is when i select your shortcut. I still have to click on the day to have it register how would i go about fixing this

Flatpickr exposes a setDate method, you can use it to set a specific date.

I updated the US Holidays Navigator example to reflect that, since I guess that'd be the expectation - you can check there how I did it.

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