Skip to content

onSelect typescript issue #751

@wgorman-sugarcrm

Description

@wgorman-sugarcrm

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions