This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Fix inputs clearing on blur with react apps #113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Today, a lot of sites are built using react framework. These apps don't allow us to just change the value of input fields. The way it is implemented, the forms seems to be filled, but once you click outside or try to submit the form, all fields are cleared. This requires us to open trezor password manager, copy the password and paste in the password field.
This pull request tries to solve that by setting the value of _valueTracker used by react and triggering events to notify the change.