Skip to content

Commit

Permalink
fix(): firefox issue (#273)
Browse files Browse the repository at this point in the history
* chore(package): update tslint-config-valorsoft to version 1.0.4

https://greenkeeper.io/

* fix bug when pressing delete or backspace buttons

* remove unnecessary things

* replace srcElement with target
  • Loading branch information
Aleksey authored and valorkin committed Jun 24, 2016
1 parent ba61815 commit f83764f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ export class SelectComponent implements OnInit {
e.preventDefault();
return;
}
if (e.srcElement) {
this.inputValue = e.srcElement.value;
let target = e.target || e.srcElement;
if (target && target.value) {
this.inputValue = target.value;
this.behavior.filter(new RegExp(escapeRegexp(this.inputValue), 'ig'));
this.doEvent('typed', this.inputValue);
}
Expand Down Expand Up @@ -384,7 +385,8 @@ export class SelectComponent implements OnInit {
.toLowerCase();
this.focusToInput(value);
this.open();
event.srcElement.value = value;
let target = event.target || event.srcElement;
target.value = value;
this.inputEvent(event);
}

Expand Down

0 comments on commit f83764f

Please sign in to comment.