Skip to content

[StepInput] change event may not get fired if value was previously updated via re-render #11573

@echau01

Description

@echau01

Bug Description

When the StepInput component re-renders with an updated value, clicking the "+" or "-" buttons in the StepInput component may not fire the change event.

This issue is similar to #5490.

Affected Component

StepInput in UI5 WebComponents React

Isolated Example

https://codesandbox.io/p/sandbox/stepinput-bug-xrwl97

Steps to Reproduce

  1. In the codesandbox, click the plus button in the step input. An alert will pop up, indicating that the onChange event handler ran. (This is the expected behaviour.)
  2. Click the "Decrement step input" button.
  3. Click the plus button in the step input. No alert pops up this time, so onChange did not run.

Expected Behaviour

Clicking the plus and minus buttons should always fire the change event.

Log Output, Stack Trace or Screenshots

No response

Priority

Medium

UI5 Web Components Version

Reproducible on v1.24.0 and v2.10.0 of @ui5/webcomponents and @ui5/webcomponents-react.

Browser

Chrome

Operating System

Windows 11

Additional Context

No response

Organization

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Completed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions