fix: delete selection are around input bar textfield (#1871)

This commit is contained in:
ggurdin 2025-02-20 15:43:09 -05:00 committed by GitHub
parent 2012c45900
commit c46ec1d459
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -486,8 +486,8 @@ class InputBar extends StatelessWidget {
// show suggestions after 50ms idle time (default is 300)
// #Pangea
// builder: (context, controller, focusNode) => TextField(
builder: (context, _, focusNode) => SelectionArea(
child: TextField(
builder: (context, _, focusNode) {
return TextField(
enableSuggestions: false,
readOnly:
controller != null && controller!.choreographer.isRunningIT,
@ -560,8 +560,8 @@ class InputBar extends StatelessWidget {
onChanged!(text);
},
textCapitalization: TextCapitalization.sentences,
),
),
);
},
suggestionsCallback: getSuggestions,
itemBuilder: (c, s) =>
buildSuggestion(c, s, Matrix.of(context).client),