When typing fast in gene profiles search input, sometimes the last typed symbol disappears.
Aim
To fix it.
Implementation
Because there is one variable (geneInput) which stores the current input value and the value stored in the state, the input value is overridden everytime we type. The solution is to use two variables - geneInput which stores the current search value and loadedSearchValue which stores the value saved in the state and used to set the input when gene profiles is loaded.
Background
When typing fast in gene profiles search input, sometimes the last typed symbol disappears.
Aim
To fix it.
Implementation
Because there is one variable (
geneInput
) which stores the current input value and the value stored in the state, the input value is overridden everytime we type. The solution is to use two variables -geneInput
which stores the current search value andloadedSearchValue
which stores the value saved in the state and used to set the input when gene profiles is loaded.