iossifovlab / gpfjs

MIT License
0 stars 0 forks source link

fix gene profiles typing in search #1064

Closed IlinaGergova closed 3 months ago

IlinaGergova commented 3 months ago

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 and loadedSearchValue which stores the value saved in the state and used to set the input when gene profiles is loaded.