Skip to content

Commit

Permalink
Fix dictionary clear button
Browse files Browse the repository at this point in the history
  • Loading branch information
alkaitagi committed Nov 9, 2021
1 parent 3a43e2c commit e0f44bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/dictionary/search_toolbar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class SearchToolbarState extends State<SearchToolbar> {
super.initState();
inputController.addListener(() {
if (lastText == inputController.text) return;
lastText = inputController.text;
setState(() {
lastText = inputController.text;
});
timer.cancel();
if (inputController.text.isEmpty) {
search();
Expand Down

0 comments on commit e0f44bf

Please sign in to comment.