MCPcopy Create free account
hub / github.com/UI5/webcomponents / _onInputChange

Method _onInputChange

packages/main/src/StepInput.ts:641–649  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

639 }
640
641 _onInputChange() {
642 this._setDefaultInputValueIfNeeded();
643 const updatedValue = this._removeGroupSeparators(this.input.value);
644 const inputValue = this._parseNumber(updatedValue);
645 if (this._isValueChanged(inputValue)) {
646 this._updateValueAndValidate(Number.isNaN(inputValue) ? this.min || 0 : inputValue);
647 this.innerInput.value = this.input.value;
648 }
649 }
650
651 _setDefaultInputValueIfNeeded() {
652 if (this.input.value === "") {

Callers 2

_onInputFocusOutMethod · 0.95
_onkeydownMethod · 0.95

Calls 5

_parseNumberMethod · 0.95
_isValueChangedMethod · 0.95

Tested by

no test coverage detected