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
-
Open the sample:
https://jsbin.com/hijerepuhe/edit?html,output
-
Enter a value into the input while it is still in Password mode.
-
Click Show Password
-> The entered value is shown correctly.
-
Reload the sample.
-
Enter a value into the input while it is in Password mode.
-
Click the value help icon (show) so that the input type changes from Password to Text.
-
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
What is the issue and how can we reproduce it?
When a
sap.m.Inputis bound to a JSON model via itsvalueproperty, the binding appears to stop updating the model after the inputtypeis switched fromPasswordtoText.Reproduction steps
Open the sample:
https://jsbin.com/hijerepuhe/edit?html,output
Enter a value into the input while it is still in
Passwordmode.Click Show Password
-> The entered value is shown correctly.
Reload the sample.
Enter a value into the input while it is in
Passwordmode.Click the value help icon (
show) so that the input type changes fromPasswordtoText.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
PasswordtoText.oModel.getProperty("/inputValue")should return the current value in both cases.What happens instead?
After switching the input type from
PasswordtoText, 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