Skip to content

Fix expression evaluation autocomplete bug - #5717

Merged
elliette merged 4 commits into
flutter:masterfrom
elliette:issue-5710
Apr 25, 2023
Merged

elliette merged 4 commits into
flutter:masterfrom
elliette:issue-5710

Conversation

@elliette

Copy link
Copy Markdown
Member

Fixes #5710
Work towards #5703

Fixes the bug where selecting a field during expression evaluation would replace everything in the input, instead of everything up to the last dot (eg. myClass.someMetho -> enter to accept someMethod would replace all of myClass.someMetho with just someMethod).

@elliette
elliette requested a review from a team as a code owner April 25, 2023 19:12
@elliette
elliette requested review from bkonyi and removed request for a team April 25, 2023 19:12

if (searchingValue.isNotEmpty) {
if (_autoCompleteController.selectTheSearch) {
_autoCompleteController.resetSearch();

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resetting the search term here was the crux of the bug. This would clear whatever the user had already inputted.

@elliette
elliette merged commit e4f512c into flutter:master Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expression evaluation autocomplete replaces entire input

2 participants