Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

onSelect typescript issue #751

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