You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
User cannot type in a TextField because each keystroke selects whole input causing the whole text to be replaced with the next keystroke. Reproducible only in Web, both Android and iOS work great.
Run the app in Web and try to type something or set the cursor at the very end of the field. The bug is not reproducible using StatefulWidget or running on Android or iOS. The effect is even more noticable when combined with BLoC listener or builder and when the text of TextField depends on the state data.
One way to fix this is to use TextEditingValue like so:
Describe the bug
User cannot type in a TextField because each keystroke selects whole input causing the whole text to be replaced with the next keystroke. Reproducible only in Web, both Android and iOS work great.
To Reproduce
Run the app in Web and try to type something or set the cursor at the very end of the field. The bug is not reproducible using StatefulWidget or running on Android or iOS. The effect is even more noticable when combined with BLoC listener or builder and when the text of TextField depends on the state data.
One way to fix this is to use TextEditingValue like so:
Expected behavior
TextField input doesn't automatically get selected
The text was updated successfully, but these errors were encountered: