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

Use toggleSelected as function #534

Closed
samirsayyaad opened this issue Apr 3, 2023 · 3 comments
Closed

Use toggleSelected as function #534

samirsayyaad opened this issue Apr 3, 2023 · 3 comments

Comments

@samirsayyaad
Copy link

Hi,

It's impossible to select the same month again after selecting multiple months.

My config: { toggleSelected: false, range true }

In the event that the user wants to cancel their current selections, they can pick another month. However, imagine if the user picked January-Feb and then suddenly decided to select only January.

ezgif-5-de296e2a3a.mov
@t1m0n
Copy link
Owner

t1m0n commented Apr 6, 2023

Well, you should set toggleSelected: true in this case )

@samirsayyaad
Copy link
Author

Hi @t1m0n,

Thanks for answering.

If I set toggleSelected: true, I can't choose just one month by double clicking on it. So, I want to have toggleSelected be false and can deselect the selected month as you can see in the video.

@t1m0n t1m0n changed the title Impossible to select same single month again after selecting multiple month Use toggleSelected as function Jun 18, 2023
t1m0n added a commit that referenced this issue Jun 24, 2023
@t1m0n
Copy link
Owner

t1m0n commented Jul 24, 2023

@samirsayyaad now you can use toggleSelected as a function and create any behaviour you want )

@t1m0n t1m0n closed this as completed Jul 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants