We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86214d5 commit 46f54f8Copy full SHA for 46f54f8
packages/main/src/StepInput.js
@@ -492,8 +492,10 @@ class StepInput extends UI5Element {
492
}
493
494
_fireChangeEvent() {
495
- this._previousValue = this.value;
496
- this.fireEvent("change", { value: this.value });
+ if (this._previousValue !== this.value) {
+ this._previousValue = this.value;
497
+ this.fireEvent("change", { value: this.value });
498
+ }
499
500
501
/**
@@ -543,6 +545,9 @@ class StepInput extends UI5Element {
543
545
544
546
547
_onInputChange(event) {
548
+ if (this.input.value === "") {
549
+ this.input.value = this.min || 0;
550
551
const inputValue = this._preciseValue(parseFloat(this.input.value));
552
if (this.value !== this._previousValue || this.value !== inputValue) {
553
this.value = inputValue;
0 commit comments