Skip to content

[ui5-input]: this.previousValue is not updated when the 'value' is not updated by typing #14034

Description

@gnseo

Bug Description

Hello.

When programmatically updates the Input's value after focus in to the Input, the Input's change event is not triggered.
I think the this.previousValue is not updated in this case.
Please have a look at the isolated example and steps to reproduce.

Regards.

Affected Component

ui5-input

Expected Behaviour

No response

Isolated Example

https://stackblitz.com/edit/fmpohs6z-mkhxrje3?file=index.js

Steps to Reproduce

  1. Select 'Austria' in ComboBox, then you can see in Input that it has value 'f'
  2. Type 'fff' in ComboBox, then click the Input or press the 'tab' key to focus in to the Input.
  3. Wait for 1 second, and you can see the Input's value is changed to empty.
  4. Type 'f' in Input as same as the previous value of the Input, then focus out from the Input. You can see that nothing is logged in console since the 'change' event was not triggered.

Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.25.2

Browser

Chrome

Operating System

No response

Additional Context

No response

Organization

No response

Declaration

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

TOPIC RLbugThis issue is a bug in the code

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions