Closed kellytk closed 4 years ago
I'm submitting a ...
For a value entered into a text input and modified in the update method, Yew fails to reflect the modified value in the text input.
I made a simple demo of the issue in https://github.com/kellytk/inputdemo/ and it can be downloaded and ran with cargo web start.
cargo web start
Type a few characters into the input, "https://" is automatically prepended, delete a few characters including the right-most "/". The deleted "/" should be restored automatically.
https://github.com/kellytk/inputdemo/blob/master/src/app/mod.rs#L62 causes "https:/" to be replaced with "https://" which is reflected in https://github.com/kellytk/inputdemo/blob/master/src/app/mod.rs#L100 but not the input.
This issue may be the same as experienced in https://github.com/DenisKolodin/yew/issues/233.
Closed as duplicate to #233
Description
I'm submitting a ...
For a value entered into a text input and modified in the update method, Yew fails to reflect the modified value in the text input.
Expected Results
I made a simple demo of the issue in https://github.com/kellytk/inputdemo/ and it can be downloaded and ran with
cargo web start
.Type a few characters into the input, "https://" is automatically prepended, delete a few characters including the right-most "/". The deleted "/" should be restored automatically.
Actual Results
https://github.com/kellytk/inputdemo/blob/master/src/app/mod.rs#L62 causes "https:/" to be replaced with "https://" which is reflected in https://github.com/kellytk/inputdemo/blob/master/src/app/mod.rs#L100 but not the input.
Context (Environment)