MCPcopy
hub / github.com/autoNumeric/autoNumeric / _isDecimalCharacterInsertionAllowed

Method _isDecimalCharacterInsertionAllowed

src/AutoNumeric.js:9172–9175  ·  view source on GitHub ↗

* Return `true` if a decimal character is allowed to be typed. * If the number of decimal places shown on focus is zero, then the decimal character is not allowed. * * @returns {boolean} * @private

()

Source from the content-addressed store, hash-verified

9170 * @private
9171 */
9172 _isDecimalCharacterInsertionAllowed() {
9173 return String(this.settings.decimalPlacesShownOnFocus) !== String(AutoNumeric.options.decimalPlacesShownOnFocus.none) &&
9174 String(this.settings.decimalPlaces) !== String(AutoNumeric.options.decimalPlaces.none);
9175 }
9176
9177 /**
9178 * Return `true` if the key is allowed.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected