Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

v1.0.5 – "Required"

Compare
Choose a tag to compare
@kalepail kalepail released this 15 Dec 18:19
· 72 commits to master since this release

Version 1.0.5 sees two major improvements.

The first is you can now add a required key for the single date picker if you'd like to break the default and generate a picker with a placeholder rather then a pre-dated input.

new Calendar({
  element: $('.daterange--single'),
  current_date: 'June 15, 2015',
  format: {input: 'M/D/YYYY'},
  required: false
});

Note the input format will be the placeholder. Cool huh?

The second is that finally the picker's callback function will only fire if the dates have actually changed. Before the function would fire regardless of what dates were chosen. So dumb. We're smarter now.