Permalink
Browse files

fix(chip-input): check for value on left arrow

checks that the input has a value before poping the last value of the chip array

resolves #64
  • Loading branch information...
ZHollingshead committed Apr 18, 2017
1 parent ad5d9ad commit cc0bd393fc1e04a9d25390efa2c2a4e94cd4d55f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/chip-input/ux-chip-input.ts
@@ -97,7 +97,7 @@ export class UxChipInput implements Themable {
}
if (key === 37) {
- if (this.chips) {
+ if (this.chips && this.textbox.value === '') {
const chip = this.chips.pop();
if (chip !== undefined) {

0 comments on commit cc0bd39

Please sign in to comment.