You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While FAutocomplete is great I need an ability to disable in a runtime both:
suggestion list popover
typeahead (placeholder autocompleting the first item)
E.g. scenarios:
user presses ignore suggestions button
selection from autocompletion is allowed to be triggered only once (especially after this issue Add onSelect callback to FAutocomplete #1033 where the autocompletion scope can be bigger)
autocompletion enabled only in the form for "adding new item", but not for "editing existing one"
I'd like the FAutocomplete or FAutocompleteController to expose a boolean/method to disable these features and literally convert to ordinary text field. When disabled, if popover or typeahead are currently displayed, popover disappears, and so does typeahead.
Please note1: FAutocomplete contains property enableSuggestions but it is for something very different.
Please note2: I tried to cook some rudimentary solution for this, but it was glitching. Options I tried were:
having my own suggestionEnabled prop, calling setState and returning empty list from filter and contentBuilder, but those two are not triggered when user inputs stays the same
for above solution I tried to add a key, FAutocomplete(key: ValueKey('autocomplete_$suggestionEnabled')), but it was causing exceptions saying that notifiers are used after being disposed in various scenarios.
While
FAutocompleteis great I need an ability to disable in a runtime both:E.g. scenarios:
I'd like the
FAutocompleteorFAutocompleteControllerto expose a boolean/method to disable these features and literally convert to ordinary text field. When disabled, if popover or typeahead are currently displayed, popover disappears, and so does typeahead.Please note1:
FAutocompletecontains propertyenableSuggestionsbut it is for something very different.Please note2: I tried to cook some rudimentary solution for this, but it was glitching. Options I tried were:
suggestionEnabledprop, calling setState and returning empty list fromfilterandcontentBuilder, but those two are not triggered when user inputs stays the sameFAutocomplete(key: ValueKey('autocomplete_$suggestionEnabled')), but it was causing exceptions saying that notifiers are used after being disposed in various scenarios.