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

onSelect typescript issue #751

Open
wgorman-sugarcrm opened this issue Aug 14, 2020 · 0 comments
Open

onSelect typescript issue #751

wgorman-sugarcrm opened this issue Aug 14, 2020 · 0 comments

Comments

@wgorman-sugarcrm
Copy link

index.d.ts defines props onSelect as:
https://github.com/react-component/calendar/blob/9.x/index.d.ts#L25

but the mixin allows for a second parameter:
https://github.com/react-component/calendar/blob/9.x/src/mixin/CalendarMixin.js#L94

I believe something like this would resolve the issue:
onSelect?: (date: Moment, cause?: {source: string}) => void;

Thanks!

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

1 participant