Skip to content

Commit

Permalink
Add preventDefault fixes Pikaday#249.
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkert committed Feb 18, 2015
1 parent c4c9037 commit 493024d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Add theme class support, see #260
- Fix on iOS, see #101
- Fix #249

## 1.3.2 - 2015-02-17

Expand Down
1 change: 1 addition & 0 deletions pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@
return;
}

e.preventDefault();
if (!hasClass(target, 'is-disabled')) {
if (hasClass(target, 'pika-button') && !hasClass(target, 'is-empty')) {
self.setDate(new Date(target.getAttribute('data-pika-year'), target.getAttribute('data-pika-month'), target.getAttribute('data-pika-day')));
Expand Down

0 comments on commit 493024d

Please sign in to comment.