Skip to content

Commit cc0bd39

Browse files
committed
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
1 parent ad5d9ad commit cc0bd39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chip-input/ux-chip-input.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class UxChipInput implements Themable {
9797
}
9898

9999
if (key === 37) {
100-
if (this.chips) {
100+
if (this.chips && this.textbox.value === '') {
101101
const chip = this.chips.pop();
102102

103103
if (chip !== undefined) {

0 commit comments

Comments
 (0)