MCPcopy
hub / github.com/autoNumeric/autoNumeric / _setCaretPosition

Method _setCaretPosition

src/AutoNumeric.js:8716–8718  ·  view source on GitHub ↗

* Set the caret position inside the input at the given position. * * @param {int} position * @private

(position)

Source from the content-addressed store, hash-verified

8714 * @private
8715 */
8716 _setCaretPosition(position) {
8717 this._setSelection(position, position);
8718 }
8719
8720 /**
8721 * Return an array containing the string parts located on the left and right side of the caret or selection.

Callers 4

_onKeyupMethod · 0.95
_setValuePartsMethod · 0.95
_formatValueMethod · 0.95

Calls 1

_setSelectionMethod · 0.95

Tested by

no test coverage detected