MCPcopy
hub / github.com/autoNumeric/autoNumeric / _saveRawValueForAndroid

Method _saveRawValueForAndroid

src/AutoNumeric.js:6938–6945  ·  view source on GitHub ↗

* On Android Chrome, the `rawValue` is not updated when the user changes the input value. * This function updates the `rawValue` accordingly. * @private

()

Source from the content-addressed store, hash-verified

6936 * @private
6937 */
6938 _saveRawValueForAndroid() {
6939 if (this.eventKey === AutoNumericEnum.keyName.AndroidDefault) {
6940 let normalizedValue = this.constructor._stripAllNonNumberCharactersExceptCustomDecimalChar(this.getFormatted(), this.settings, true, this.isFocused);
6941 normalizedValue = this.constructor._convertToNumericString(normalizedValue, this.settings);
6942
6943 this._setRawValue(normalizedValue);
6944 }
6945 }
6946
6947 /**
6948 * Handler for 'focusout' events

Callers 1

_onKeyupMethod · 0.95

Tested by

no test coverage detected