Skip to content

Commit

Permalink
Merge pull request Pikaday#477 from jdaudier/fix/IEselectBug
Browse files Browse the repository at this point in the history
Make disabled buttons not clickable in IE 10 and below [closes Pikaday#288]
  • Loading branch information
dbushell committed Feb 19, 2016
2 parents 0a654ac + 5e21523 commit c47ec5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pikaday.js
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@
}

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

0 comments on commit c47ec5e

Please sign in to comment.