Skip to content

Commit

Permalink
fix(locked): adding event in args
Browse files Browse the repository at this point in the history
event wasn't included in args which caused bugs in some browsers
  • Loading branch information
crsten committed Jan 31, 2017
1 parent 1418c13 commit 9f70c79
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/datepickk.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
label.appendChild(text);
label.appendChild(tooltip);

input.addEventListener(eventName,function(){
input.addEventListener(eventName,function(event){
if(locked){
event.preventDefault();
}
Expand Down
2 changes: 1 addition & 1 deletion dist/datepickk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/datepickk.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/datepickk.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
label.appendChild(text);
label.appendChild(tooltip);

input.addEventListener(eventName,function(){
input.addEventListener(eventName,function(event){
if(locked){
event.preventDefault();
}
Expand Down

0 comments on commit 9f70c79

Please sign in to comment.