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] TypeAheadField with 'direction' property set to VerticalDirection.up is not focused. #565

Closed
yj-abe opened this issue Jan 30, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yj-abe
Copy link

yj-abe commented Jan 30, 2024

Steps to reproduce

  1. Write a program like the following.
      Column(
        children: [
          TextFormField(
            textInputAction: TextInputAction.next,
          ),
          TypeAheadField<String>(
            direction: VerticalDirection.up,
            itemBuilder: (context, value) {
              return Text(value);
            },
            onSelected: (value) {},
            suggestionsCallback: (search) {
              return ['test'];
            },
          ),
        ],
      ),
  1. Enter text in the first TextFormField and click the next button on the keyboard.

Expected results

Focus moves to next TypeAheadField.

Actual results

TypeAheadField is not focused.
If I set direction of TypeAheadField to VerticalDirection.down, it works fine.

Package Version

5.1.0

Platform

Android, iOS

Code sample

Code sample
      Column(
        children: [
          TextFormField(
            textInputAction: TextInputAction.next,
          ),
          TypeAheadField<String>(
            direction: VerticalDirection.up,
            itemBuilder: (context, value) {
              return Text(value);
            },
            onSelected: (value) {},
            suggestionsCallback: (search) {
              return ['test'];
            },
          ),
        ],
      ),

Logs

Logs

nothing

Screenshots or Video

Screenshots / Video demonstration nothing
@yj-abe yj-abe added the bug Something isn't working label Jan 30, 2024
@clragon clragon self-assigned this Feb 8, 2024
@clragon
Copy link
Collaborator

clragon commented Feb 8, 2024

Reproducible on 5.2.0

@clragon
Copy link
Collaborator

clragon commented May 26, 2024

This issue is most likely related to #579 and will be fixed when the changes there are implemented.
Please follow that issue instead. Thank you!

@clragon clragon closed this as not planned Won't fix, can't repro, duplicate, stale May 26, 2024
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

2 participants