Skip to content

Conversation

@StevenRasmussen
Copy link
Contributor

Pull Request

📖 Description

This PR introduces the ability to close the dropdown of a FluentAutoComplete in code. There could be others but my use-case is that I have a button in the 'Footer' of the dropdown that allows a user to open up a more advanced dialog for searching for a result (shows a grid). When this button is pressed, a dialog is opened but because the dropdown of the autocomplete is still open, it displays over the dialog. Here is a screen capture of that happening:

Autocomplete-open-issue

📑 Test Plan

Run the demo project and go to the Autocomplete page. Then go to the Close via code section, invoke the dropdown and then click on the button in the footer.

Here is an example of it working:

Autocomplete-open-issue-fixed

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

@dvoituron dvoituron merged commit 8d3f795 into microsoft:dev Apr 19, 2025
4 checks passed
@vnbaaij vnbaaij added this to the v4.11.9 milestone May 4, 2025
@vnbaaij vnbaaij changed the title Autocomplete - close the dropdown via code [AutoComplete] Close the dropdown via code May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants