Skip to content

Commit

Permalink
Merge pull request #179 from mitja-p/patch-2
Browse files Browse the repository at this point in the history
If input is readonly click should show the picker.
  • Loading branch information
najlepsiwebdesigner authored Sep 25, 2016
2 parents 3fed1bc + 625b714 commit 500a211
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/foundation-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,8 @@
[this.element, {
focus: (this.autoShow) ? $.proxy(this.show, this) : function() {},
keyup: $.proxy(this.update, this),
keydown: $.proxy(this.keydown, this)
keydown: $.proxy(this.keydown, this),
click: (this.element.attr('readonly')) ? $.proxy(this.show, this) : function() {}
}]
];
}
Expand Down

0 comments on commit 500a211

Please sign in to comment.