fix: delete selection are around input bar textfield (#1871)
This commit is contained in:
parent
2012c45900
commit
c46ec1d459
1 changed files with 4 additions and 4 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue