Skip to content

Conversation

@smaury
Copy link

@smaury smaury commented Feb 19, 2016

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.

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.
@hsyntnc
Copy link

hsyntnc commented Apr 3, 2018

You rock bro!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants