-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autocomplete on restore form #606
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than one small suggestion, LGTM
if (pattern.length == 4 && suggestionList.isNotEmpty) { | ||
_selectSuggestion(suggestionList.first, itemIndex); | ||
return List.empty(); | ||
} | ||
return suggestionList.isNotEmpty ? suggestionList : List.empty(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return suggestionList.isNotEmpty ? suggestionList : List.empty(); | |
return suggestionList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with this. Did not autocomplete or fill out the word.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with both your example and the suggested edit, but did not fill in the word.
if (pattern.length == 4 && suggestionList.isNotEmpty) { | ||
_selectSuggestion(suggestionList.first, itemIndex); | ||
return List.empty(); | ||
} | ||
return suggestionList.isNotEmpty ? suggestionList : List.empty(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested with this. Did not autocomplete or fill out the word.
Thanks Ruben. There's probably another underlying issue with how TypeAheadFormField's callback's work. Keeping this as draft till I get the chance to test this. |
e836655
to
20a70a4
Compare
Is it still relevant @erdemyerebasmaz ? |
Yes, but haven't had a chance to reevaluate after Ruben's findings. This is a low priority enhancement. |
20a70a4
to
3d522e2
Compare
The autocomplete is functional but it has a lot of issues if you try to change/delete the autocompleted word at the moment. It works really well if you get everything right on the first try but we can't rely on that :) Postponing this. |
This PR addresses #505
Applies the behavior described in #505 (comment):