AbdulRahmanAlHamali/flutter_typeahead

[Bug] clearing text controller triggers suggestions callback even when closed

AHmED-TArEk-iBrahim opened this issue · 2 comments

Steps to reproduce

  • Call clear on the attached TextEditingController
  • Observe calls to suggestions callback even when the suggestions box is closed

Expected results

no unnecessary calls are made

Actual results

calls are made even when not necessary

Package Version

5.1.0

Platform

Android

Code sample

Code sample
 N/A

Logs

Logs
[Paste your logs here]

Screenshots or Video

Screenshots / Video demonstration [Upload media here]

Thank you for your issue.
In the next release, the suggestionsCallback will only ever be called if the suggestions box is open at the time.

a fixed has now been released in version 5.2.0