Skip to content

DropdownMenu shows incorrect currentHighlight #136735

@Piinks

Description

@Piinks

b/305662376

Customer reports the current highlight of their DropdownMenu is not correct.
I have not been able to reproduce this in an independent code sample, but the customer code and a video of the bug is available in the internal bug listed above.

Steps:

  1. DropdownMenu has initial index of 0.
  2. Customer opens menu, selects index 2, menu closes.
  3. Customer opens menu, index 1 is highlighted.

@QuncCccccc do you have any thoughts on this? It looks like currentHighlight is incorrect.

I think this could be the way we choose the currentHighlight based on filtering. The customer case has 3 items in the menu, in this order

  • All
  • Unread
  • Read

The bug presents itself when Read is selected and the menu is reopened, and Unread is highlighted instead. At this point Read is in the text field of the menu, so we could be highlighting the first match to the String read. Maybe?

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listcustomer: chalk (g3)f: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions