mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
I think was was happening is the browser was trying to do too much at once (Rendering the popup and focusing the input simultaneously). I believe it was triggering a reflow and setting the site back to default aka: back to the top. I set the timeout to 0 which moves the execution to the next loop event. It gives the browser time to do one and then the other, not both at the same time. I moved `onKeyPress` to `onKeyDown` due to the former being depreciated. |
||
|---|---|---|
| .. | ||
| login | ||
| v2.5 | ||
| ui.go | ||