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

Shift+Tab navigation with AutoSuggestBox 🐛 #894

Closed
Michal-MK opened this issue Jul 21, 2023 · 0 comments
Closed

Shift+Tab navigation with AutoSuggestBox 🐛 #894

Michal-MK opened this issue Jul 21, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Michal-MK
Copy link

Describe the bug
I have two AutoSuggestBoxes in a Row

import 'package:fluent_ui/fluent_ui.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return FluentApp(
      theme: FluentThemeData(),
      home: Row(
        children: [
          const Expanded(
            child: AutoSuggestBox(
              autofocus: true,
              items: [],
            ),
          ),
          Expanded(
            child: AutoSuggestBox(
              items: [
                AutoSuggestBoxItem(value: "Some Item", label: "Some Item"),
              ],
            ),
          ),
        ],
      ),
    );
  }
}

The first one is focused. When I press Tab the focus moves to the next one -> ✅
The second one is focused now. When I press Shift+Tab i expect to move back to the first one. But instead the second one is "re-focused", the overlay with the suggestions blinks and the focus does not change. -> 🟥
The second one is still focused. Pressing Tab moves to the first -> ✅ (Since there are only 2 the focus loops that is expected.)

Additional context

name: src
description: A new Flutter project.
publish_to: 'none'

version: 1.0.0+1

environment:
  sdk: '>=3.0.1 <4.0.0'

dependencies:
  flutter:
    sdk: flutter

  fluent_ui: ^4.7.0

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^2.0.0

flutter:
  uses-material-design: true
@bdlukaa bdlukaa added the bug Something isn't working label Jul 21, 2023
@Michal-MK Michal-MK changed the title Shift+Tab navigation with AutoSuggsetBox 🐛 Shift+Tab navigation with AutoSuggestBox 🐛 Jul 21, 2023
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