这是indexloc提供的服务,不要输入任何密码
Skip to content

Add (or restore) onChangeMonth hook #87

@brianmhunt

Description

@brianmhunt

In usability studies I have done, I noted that when changing the month in a calendar most users expect that the selected date will move relative to the current date.

For example, when looking at September 21, 2012, and changing the month to October, the users expect the date October 21, 2012 to be selected.

This is easy enough to accommodate through an event triggered upon month changes, and I would be happy to be able to do it through such a trigger (much like jQuery UI datepicker's onChangeMonthYear).

It seems that such an event may have once been in, or may have been planned for, pickadate.js as onChangeMonth is mentioned in the Default Options documentation. There doesn't seem to be any mention of it in the code though.

If it is not too much trouble, I think this the callback would be useful functionality I would be grateful if the onChangeMonth hook functionality were included / enabled in pickadate.js so that I can accomodate the user expectations.

Many thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions