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

feat: add "keepOpen" property to/in autocomplete dropdown so it does not closes automatically after each selection #2819

Closed
lasbrojen opened this issue Oct 17, 2024 · 3 comments
Assignees
Labels
feature A new feature

Comments

@lasbrojen
Copy link

lasbrojen commented Oct 17, 2024

🙋 Feature Request
Add "keepOpen" property to autocomplete dropdown so it does not closes automatically after each selection

https://www.fluentui-blazor.net/Autocomplete

🤔 Expected Behavior
When interacting with the autocomplete dropdown, I expect the selection list to remain open until I explicitly click outside of it. This would allow me to quickly browse and select multiple options without the need for reopening the dropdown each time.

Maybe Multiple="true" should result in this behavior?

😯 Current Behavior
Currently, the autocomplete dropdown closes automatically after each selection. This behavior requires me to reopen the dropdown every time I want to choose another option, which disrupts the flow and increases interaction time.

Image

💁 Possible Solution
A possible solution would be to introduce a property (e.g., keepOpen) that can be set to keep the selection list open until the user clicks outside the dropdown area.

❤️

@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Oct 17, 2024
@dvoituron
Copy link
Collaborator

That could be a good improvement.

I don't know what is the best:

  1. to add a new property KeepOpen or AutoClose
  2. to use an existing property like MaximumSelectedOptions or Multiple to use this new behavior

@dvoituron dvoituron added feature A new feature and removed triage New issue. Needs to be looked at labels Oct 17, 2024
@dvoituron dvoituron self-assigned this Oct 17, 2024
@dvoituron
Copy link
Collaborator

See the PR #2829

@lasbrojen
Copy link
Author

See the PR #2829

Thank you very much - have a nice weekend 🌞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants