expo / dev-plugins

Out-of-tree Expo devtools plugins for packages that haven't adopted the Expo devtools plugin system yet.
MIT License
146 stars 24 forks source link

@dev-plugin/async-storage inline editing cursor jump #23

Closed plrdev closed 4 months ago

plrdev commented 7 months ago

Async storage devtools have an option to inline edit the value, but it updates the value after each keystroke, which sets the cursor at the beginning of the text input. The result is typing backwards!

For example, trying to type testing results into:

image

React probably re-renders after the value change and resets the cursor.

jthoward64 commented 7 months ago

Yeah I'd had that issue before and though I'd fixed it, I will take a look and see what's going on tonight or tomorrow.

EDIT: well, that took longer than expected