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

Method _setDefaultInputValueIfNeeded

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

Source from the content-addressed store, hash-verified

649 }
650
651 _setDefaultInputValueIfNeeded() {
652 if (this.input.value === "") {
653 const defaultValue = this._formatNumber(this.min || 0);
654 this.input.value = defaultValue;
655 this.innerInput.value = defaultValue; // we need to update inner input value as well, to avoid empty input scenario
656 }
657 }
658
659 _isValueChanged(inputValue: number) {
660 const isValueWithCorrectPrecision = this._isValueWithCorrectPrecision;

Callers 1

_onInputChangeMethod · 0.95

Calls 1

_formatNumberMethod · 0.95

Tested by

no test coverage detected