Skip to content

Commit

Permalink
Merge pull request #4357 from jtomaszewski/patch-1
Browse files Browse the repository at this point in the history
Fix `e.detail.keyboardHeight` undefined error in keyboardAttach directive
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 048915e + a3924cb commit d884ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/angular/directive/keyboardAttach.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ IonicModule
}

//for testing
var keyboardHeight = e.keyboardHeight || e.detail.keyboardHeight;
var keyboardHeight = e.keyboardHeight || (e.detail && e.detail.keyboardHeight);
element.css('bottom', keyboardHeight + "px");
scrollCtrl = element.controller('$ionicScroll');
if (scrollCtrl) {
Expand Down

0 comments on commit d884ecb

Please sign in to comment.