formatter.js icon indicating copy to clipboard operation
formatter.js copied to clipboard

Fix incorrect focus on 'persistent': true

Open smaury opened this issue 9 years ago • 1 comments

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.

smaury avatar Feb 19 '16 11:02 smaury

You rock bro!

hsyntnc avatar Apr 03 '18 13:04 hsyntnc