Open fdemiguel opened 1 week ago
@fdemiguel
What flutter version and platform are you seeing this ?
I checked with latest master and running below code with initialValue
which properly sets the given value:
The problem is not related to the fact that it does not assign the initial value, it is that it does not select the text. In your example, if you write initialValue: TextEditingValue(text: 'bobcat', selection: TextSelection(baseOffset: 0, extentOffset: 6))),
you will see that the text bobcat is not selected.
I see. Thanks for the update. Seeing the same behavior as reported. This also occurs using RawAutocomplete
widget as well.
Stable : 3.24.3
Master: 3.26.0-1.0.pre.129
Steps to reproduce
initialValue: TextEditingValue( text: 'bobcat', selection: TextSelection(baseOffset: 0, extentOffset: 2))
as Autocomplete parameter in the first exampleExpected results
The 'bobcat' text to be selected
Actual results
The text 'bobcat' is not selected