flutter_easy_autocomplete icon indicating copy to clipboard operation
flutter_easy_autocomplete copied to clipboard

Select doesn't working on WEB

Open AbdrahumanFikry opened this issue 2 years ago • 2 comments

After I enter the word and press on the suggestion ,It doesn't set the field value to the selected option

@4inka

AbdrahumanFikry avatar Jan 29 '23 14:01 AbdrahumanFikry

After I enter the word and press on the suggestion ,It doesn't set the field value to the selected option

@4inka Overlay closes before onTap is called

Overlay is unfocused when tapping on the selected item, so the overlay closes and the onTap callback is not called. The easiest workaround is removing the lines where the overlay closes when it loses focus.

ismadev avatar Feb 20 '23 09:02 ismadev

also happens on macbook.

fixed by modify:

 _focusNode.addListener(() {
      if (_focusNode.hasFocus) {
        openOverlay();
      }
      // else {
      //   closeOverlay();
      // }
    });

2lineofcode avatar Nov 05 '23 04:11 2lineofcode