* Set the valid 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 removed. * The 'autoNumer
()
| 6164 | * @private |
| 6165 | */ |
| 6166 | _setValidState() { |
| 6167 | if (this.isInputElement) { |
| 6168 | AutoNumericHelper.setValidState(this.domElement); |
| 6169 | } else { |
| 6170 | this._removeCSSClass(this.settings.invalidClass); |
| 6171 | } |
| 6172 | |
| 6173 | if (!this.validState) { |
| 6174 | this._triggerEvent(AutoNumeric.events.correctedValue, this.domElement); |
| 6175 | } |
| 6176 | |
| 6177 | this.validState = true; |
| 6178 | } |
| 6179 | |
| 6180 | /** |
| 6181 | * Sets the valid or invalid state on the DOM element, if the value is within the range set by the minimum and maximum value |
no test coverage detected