Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DropdownButton stays highlighted after selecting an option and/or closing the dropdown #300

Open
zeshuaro opened this issue Mar 2, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@zeshuaro
Copy link
Owner

zeshuaro commented Mar 2, 2022

Platform

All platforms

Steps to Reproduce

  1. Select any dropdown
  2. Select an option or simply close the dropdown

Expected behaviour

The dropdown should not remain being highlighted

Actual behaviour

The dropdown remains highlighted

Additional Context

Related to this issue on Flutter flutter/flutter#94605

@zeshuaro zeshuaro added the bug Something isn't working label Mar 2, 2022
@zeshuaro zeshuaro self-assigned this Mar 7, 2022
@MegatronKing
Copy link

Any update?

@MegatronKing
Copy link

A workaround is set the focusColor to Colors.transparent

@zeshuaro
Copy link
Owner Author

Any update?

This issue is coming from Flutter and I've linked the relevant issue on the Flutter repo. There's not much update until Flutter releases a new version to address this.

A workaround is set the focusColor to Colors.transparent

I wouldn't agree that this workaround is applicable as this will remove the highlight/focus behaviour.

@oleksii-pimenov
Copy link

oleksii-pimenov commented Jan 20, 2024

As a workaround
onRowsPerPageChanged: (_) { FocusScope.of(context).requestFocus(FocusNode()); },
but only if user choose one of the options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants