Fix incorrect focus on 'persistent': true #94
+2
−2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If persistent is set to true this code is executed:
497 - self._processKey('', false);
Then at the end of Formatter.prototype._processKey this code is executed with ignoreCaret not set so it's Undefined:
647 - this._formattValue(ignoreCaret);
Finally this code who changes screen position, if ignoreCaret is False or Undefined, is executed:
694 - inptSel.set(this.el,this.newPos);
So it's enough to change line 497 to self._processKey('', false, true); to fix this.