Skip to content

sap.m.Input: changing type from Password to Text stops updating JSONModel value binding #4432

@user1545

Description

@user1545

What is the issue and how can we reproduce it?

When a sap.m.Input is bound to a JSON model via its value property, the binding appears to stop updating the model after the input type is switched from Password to Text.

Reproduction steps

  1. Open the sample:
    https://jsbin.com/hijerepuhe/edit?html,output

  2. Enter a value into the input while it is still in Password mode.

  3. Click Show Password
    -> The entered value is shown correctly.

  4. Reload the sample.

  5. Enter a value into the input while it is in Password mode.

  6. Click the value help icon (show) so that the input type changes from Password to Text.

  7. Click Show Password

What is the expected result?

The value entered in the input should still be available in the bound JSON model after switching the input type from Password to Text.

oModel.getProperty("/inputValue") should return the current value in both cases.

What happens instead?

After switching the input type from Password to Text, the model no longer seems to receive the current value.

As a result, clicking the button shows an empty or missing password value although text is visible in the input field.

Which OpenUI5 version is your project targeting?

1.146.0

Is the issue device- or browser-specific?

Not browser-specific, tested:
Chrome, Firefox

Confirmation

  • I have searched the existing issues and reviewed the relevant documentation as well as the API reference.
  • I am not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions