MCPcopy Index your code
hub / github.com/autoNumeric/autoNumeric / _onFocus

Method _onFocus

src/AutoNumeric.js:6418–6423  ·  view source on GitHub ↗

* Handler for the 'focus' event. * We update the info of the focused state in the `this.isFocused` variable when the element gets focused. * @private

()

Source from the content-addressed store, hash-verified

6416 * @private
6417 */
6418 _onFocus() {
6419 if (this.settings.isCancellable) {
6420 // Save the current unformatted value for later use by the 'cancellable' feature
6421 this._saveCancellableValue();
6422 }
6423 }
6424
6425 /**
6426 * Handler for the 'focusin' event.

Callers 1

_createEventListenersMethod · 0.95

Calls 1

_saveCancellableValueMethod · 0.95

Tested by

no test coverage detected