Skip to content

Change event handlers arguments signature #256

@gpbl

Description

@gpbl

The current event handlers such as onDayClick have a signature which puts the Synthetic Event as first argument:

onDayClick={ (e, day, modifiers) => doSomething(day); }

however it is expected the most common arguments to be day and modifiers:

onDayClick={ (day, modifiers, e) => doSomething(day); }

which can lead to a more concise, readable code:

onDayClick={ doSomething }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions