angular-st-components
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "angular-st-components", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Components made by stLmpp for AngularJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -186,3 +186,3 @@ import { compareTwoStrings } from 'string-similarity'; | ||
} | ||
keyup($event){ | ||
/*keyup($event){ | ||
if (!Util.throttle('stTypeaheadKeyup')) return; | ||
@@ -202,3 +202,3 @@ switch ($event.which){ | ||
} | ||
} | ||
}*/ | ||
handleCtrlZ($event){ | ||
@@ -208,4 +208,8 @@ if (!$event.ctrlKey && Util.isEmpty(this.lastSelected) || !this.modelValue.length) return; | ||
let i = this.lastSelected.length-1; | ||
this.remove($event, this.lastSelected[i]); | ||
this.lastSelected.pop(); | ||
if (!Util.isObjectEmpty(this.matchSelected)){ | ||
this.remove($event, this.lastSelected[i]); | ||
this.lastSelected.pop(); | ||
} else { | ||
this.matchSelected = this.lastSelected[i]; | ||
} | ||
} | ||
@@ -212,0 +216,0 @@ handleDown($event){ |
5278342
176
76317