File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
- Fix [ Issue: #222 ] ( https://github.com/maheshj01/searchfield/issues/222 ) Suggestion overlay dimensions not updated on resize
4
4
- Fix [ Issue: #224 ] ( https://github.com/maheshj01/searchfield/issues/224 ) calling setState in listener caused setState exception
5
+ - Fix [ Issue: #218 ] ( https://github.com/maheshj01/searchfield/issues/218 ) FocusNode listener is not removed
5
6
6
7
### [ 1.2.7] - Apr 16, 2025
7
8
Original file line number Diff line number Diff line change @@ -426,10 +426,8 @@ class _SearchFieldState<T> extends State<SearchField<T>> {
426
426
if (widget.controller == null ) {
427
427
searchController! .dispose ();
428
428
}
429
- if (widget.focusNode == null ) {
430
- _searchFocus! .dispose ();
431
- }
432
-
429
+ _searchFocus? .removeListener (() {});
430
+ _searchFocus? .dispose ();
433
431
removeOverlay ();
434
432
super .dispose ();
435
433
}
You can’t perform that action at this time.
0 commit comments