* Set the invalid state on the AutoNumeric element. * If the element is not an input, and therefore a contenteditable-enabled element, its validity state cannot be changed. * In that case, the invalid css class defined with the `settings.invalidClass` option is added to the element. *
()
| 6145 | * @private |
| 6146 | */ |
| 6147 | _setInvalidState() { |
| 6148 | if (this.isInputElement) { |
| 6149 | AutoNumericHelper.setInvalidState(this.domElement); |
| 6150 | } else { |
| 6151 | this._addCSSClass(this.settings.invalidClass); |
| 6152 | } |
| 6153 | |
| 6154 | this._triggerEvent(AutoNumeric.events.invalidValue, this.domElement); |
| 6155 | this.validState = false; |
| 6156 | } |
| 6157 | |
| 6158 | /** |
| 6159 | * Set the valid state on the AutoNumeric element. |
no test coverage detected