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

Latest version breaks resetSelections() #218

Open
CoinCoderBuffalo opened this issue Jul 25, 2020 · 5 comments
Open

Latest version breaks resetSelections() #218

CoinCoderBuffalo opened this issue Jul 25, 2020 · 5 comments

Comments

@CoinCoderBuffalo
Copy link

This works on v6.1.1.
refCal.current.resetSelections()

This does nothing on v7
refCal.current.resetSelections()

@peacechen
Copy link
Collaborator

Please post a code snippet and more details about the unexpected behavior. Are you using scrollable?

@haveamission
Copy link

Can confirm, same bug.

Literally just including a ref and then trying to call the ref like so:

  const clearDates = () => {
    setStartDate(null);
    setEndDate(null);
    r.current?.resetSelections();
  };

doesn't work

@peacechen
Copy link
Collaborator

Thanks for the code snippet. I'm not able to actively work on this project and am looking for maintainers to help. Please submit a PR and I'll review & merge. Try the Sample App to develop & test locally.

@Poryl
Copy link

Poryl commented Nov 23, 2022

Hi @peacechen ,
I see the PR fix for this. Could you review it and merge?
https://github.com/stephy/CalendarPicker/pull/299/files

@peacechen
Copy link
Collaborator

Fix published in 7.1.3

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

4 participants