Skip to content

Commit

Permalink
fix(ui5-step-input): check for inner input before using value (#9212)
Browse files Browse the repository at this point in the history
fixes: #9119
  • Loading branch information
tsanislavgatev committed Jun 14, 2024
1 parent cc34cea commit 1b9fb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/main/src/StepInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ class StepInput extends UI5Element implements IFormInputElement {
return this.value.toFixed(this.valuePrecision);
}

if (this.value === Number(this.input.value)) { // For the cases where the number is fractional and is ending with 0s.
if (this.input && this.value === Number(this.input.value)) { // For the cases where the number is fractional and is ending with 0s.
return this.input.value;
}

Expand Down

0 comments on commit 1b9fb61

Please sign in to comment.