Skip to content

MacosSearchField does not execute the onResultSelected function #348

@FelixMethe

Description

@FelixMethe

Description
When an item from the MacosSearchField is selected, the onResultSelected function of the field itself and the onSelected function of the selected SearchResultItem is not called.

Steps To Reproduce

  1. Go to the Fields page of the example project
  2. Type something in one of the search fields
  3. Select one of the options
  4. This should print the selected SearchResultItem to the console. This does not happen.

After testing, I found out that removing the lines 245 and 246 of the search_field.dart file resolves the error:

} else {
   _overlayEntry.remove();

But I am not sure if this breaks some other intended behavior.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions