Skip to content

Commit

Permalink
Test for backspace on old Android Chrome only in case we received bad…
Browse files Browse the repository at this point in the history
… charCode value (#390) (#391)
  • Loading branch information
SleepWalker authored and nosir committed Aug 22, 2018
1 parent daa11ce commit 5fb544c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Cleave.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ Cleave.prototype = {
Util = Cleave.Util,
currentValue = owner.element.value;

if (Util.isAndroidBackspaceKeydown(owner.lastInputValue, currentValue)) {
if (charCode === 229
&& Util.isAndroidBackspaceKeydown(owner.lastInputValue, currentValue)
) {
charCode = 8;
}

Expand Down

0 comments on commit 5fb544c

Please sign in to comment.