Skip to content

Commit

Permalink
Add missing onBlur function requested in view
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarnef committed Aug 3, 2020
1 parent 11076ac commit e052fd6
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
var vm = this;

vm.onKeyDown = onKeyDown;
vm.onBlur = onBlur;
vm.onChange = onChange;

var searchDelay = _.debounce(function () {
Expand All @@ -30,16 +31,20 @@
});
}, 500);

function onKeyDown(ev) {
function onKeyDown(evt) {
//13: enter
switch (ev.keyCode) {
switch (evt.keyCode) {
case 13:
if (vm.onSearch) {
vm.onSearch();
}
break;
}
}

function onBlur(evt) {

}

function onChange() {
if (vm.onStartTyping) {
Expand Down

0 comments on commit e052fd6

Please sign in to comment.