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: FluentAutocomplete cannot close selected item #2644

Closed
brzozasr opened this issue Sep 11, 2024 · 4 comments
Closed

Bug: FluentAutocomplete cannot close selected item #2644

brzozasr opened this issue Sep 11, 2024 · 4 comments
Assignees
Labels
status:needs-investigation Needs additional investigation
Milestone

Comments

@brzozasr
Copy link

🐛 Bug Report

I have an issue with the FluentAutocomplete component. I cannot close the selected item by clicking on the cross and the browser tools throw the error: "Blocked aria-hidden on a element because the element that just received focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus."

error

Logs

Blocked aria-hidden on a element because the element that just received focus must not be hidden from assistive technology users. Avoid using aria-hidden on a focused element or its ancestor. Consider using the inert attribute instead, which will also prevent focus. For more details, see the aria-hidden section of the WAI-ARIA specification at https://w3c.github.io/aria/#aria-hidden. <svg style=​"width:​ 12px;​ fill:​ var(--accent-fill-rest)​;​ cursor:​ pointer;​ margin:​ 2px 0px 0px 2px;​" focusable=​"true" tabindex=​"0" role=​"button" viewBox=​"0 0 24 24" aria-hidden=​"true">​<title>​Remove 4232941110 - GBG_39 T2S_42/6_WCB_14​</title>​<path d=​"m4.4 4.55.07-.08a.75.75 0 0 1 .98-.07l.08.07L12 10.94l6.47-6.47a.75.75 0 1 1 1.06 1.06L13.06 12l6.47 6.47c.27.27.3.68.07.98l-.07.08a.75.75 0 0 1-.98.07l-.08-.07L12 13.06l-6.47 6.47a.75.75 0 0 1-1.06-1.06L10.94 12 4.47 5.53a.75.75 0 0 1-.07-.98l.07-.08-.07.08Z">​​​

<FluentAutocomplete TOption="Data"
                    AutoComplete="off"
                    Autofocus="true"
                    Label="Select item"
                    Width="400px"
                    MaxAutoHeight="250px"
                    Placeholder="Write name"
                    OnOptionsSearch="@OnSearchAsync"
                    SelectedOptionsChanged="@(list => OnSelectWellChangeAsync(list))"
                    Multiple="true"
                    MaximumSelectedOptions="1"
                    MaximumOptionsSearch="int.MaxValue"
                    OptionText="@(item => item.Name)"
                    OptionValue="@(item => item.No)"
                    SelectedOptions="@selectedItems" />

🌍 Your Environment

  • OS & Device: Windows 10 PC
  • Browser Browser: Microsoft Edge for Business, Version 128.0.2739.67 (Official build) (64-bit)
  • .NET and Fluent UI Blazor library Version 4.10.0]
@microsoft-github-policy-service microsoft-github-policy-service bot added the triage New issue. Needs to be looked at label Sep 11, 2024
@vnbaaij vnbaaij added needs: author feedback The author of this issue needs to respond in order for us to continue investigating this issue. needs: repro code or repository The provided description or code is insufficient to repro the issue and removed triage New issue. Needs to be looked at labels Sep 11, 2024
@vnbaaij
Copy link
Collaborator

vnbaaij commented Sep 11, 2024

It s not clear what the issue is and when this happens. Please provide more screenshots with annotations.

Also, supply reproduction code we can actually run or point to a sample that shows the issue...

Please supply us with ready-to-run reproduction code in the form of something we can copy/paste, a (zipped) project structure or a GitHub repository.

We do not have capacity to craft or compose a reproduction for every issue that gets raised.

If no code or repository is provided, this issue will be closed in 3 days

Help us to help you. Thanks.

@brzozasr
Copy link
Author

Thank you for you response.
The same issue is on the page (https://www.fluentui-blazor.net/Autocomplete).
Please see screenshot:
image
However, in my case, I cannot deselect (close the selected item) by clicking the cross and have to refresh the page

@vnbaaij vnbaaij added status:needs-investigation Needs additional investigation and removed needs: author feedback The author of this issue needs to respond in order for us to continue investigating this issue. needs: repro code or repository The provided description or code is insufficient to repro the issue labels Sep 11, 2024
@vnbaaij vnbaaij added this to the v4.10.1 milestone Sep 11, 2024
@dvoituron
Copy link
Collaborator

That will be fixed in the next Release. See #2648

@brzozasr
Copy link
Author

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:needs-investigation Needs additional investigation
Projects
None yet
Development

No branches or pull requests

3 participants