Skip to content

Autocomplete does not dismiss overlay on selection #99749

@StraussPorcupine

Description

@StraussPorcupine

The bug happens when you use autocomplete, and the user fills in the same value as what is recommended and the user clicks on the recommended value, if it is the same as the filled value, it will not dismiss the overlay.

Steps to Reproduce

This bug is on any Autocomplete widget
Even on the Api.flutter.dev

  1. Go to https://api.flutter.dev/flutter/material/Autocomplete-class.html
  2. Run the first example.
  3. in the input field type in 'aardvark'
  4. click on the recommended answer that is the same

Expected results:
The expected result is the overlay to dismiss.

Actual results:
Overlay stays, and nothing happens, the material splash happens, but it does not close the overlay.

Metadata

Metadata

Labels

f: material designflutter/packages/flutter/material repository.found in release: 2.10Found to occur in 2.10found in release: 2.11Found to occur in 2.11frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions