Skip to content

Commit

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

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

## 1.3.2 - 2015-02-17

Expand Down
2 changes: 1 addition & 1 deletion pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@
self.el = document.createElement('div');
self.el.className = 'pika-single' + (opts.isRTL ? ' is-rtl' : '') + (opts.theme ? ' ' + opts.theme : '');

addEvent(self.el, 'mousedown', self._onMouseDown, true);
addEvent(self.el, 'ontouchend' in document ? 'ontouchend' : 'mousedown', self._onMouseDown, true);
addEvent(self.el, 'change', self._onChange);

if (opts.field) {
Expand Down

0 comments on commit c4c9037

Please sign in to comment.