Closed ZnowuJa closed 8 months ago
Please supply us with a ready to run minimal reproduction. We can't run the code you provided anddo not have capacity to craft code ourselves for every issue.
Here is fresh repo: https://github.com/ZnowuJa/Second-FluentSelect-Crashesh.git
On Home Page please click Add Part button, and on component try to go through it with tab keys and expand Dropdowns. Second one will crash the application. Or I'm doing something wrong... If you use mouse to expand and select - everything is ok. Even you can expand second dropdown with mouse but you can not use keyboard then...
Ok, it was you who was doing it wrong...😉
You have in Part_Edit_Component.razor
:
:
<FluentSelect TOption="CategoryVm"
Label="Select a category..."
Items="@itemCategoryList"
Id="Id"
:
and
:
<FluentSelect TOption="VendorVm"
Label="Select a vendor..."
Items="@itemVendorList"
Id="Id"
:
See what is the issue there? Both FluentSelect
s are assigned to the same Id
. Just change the second one to something else abd it all starts woring as it should
🐛 Bug Report
In component I have two identical FluentSelect components, both handles lists of very similar objects Categories and Vendors. When I expand both FluentSelects using mouse, everything is working perfect. When I go through Form with keyboard and try to expand the second one striking arrow down key it crashes the form.
I tried some constellations. For instance change order of FluentSelects, add another component after them etc. etc.
Single FluentSelect (either Category or Vendor) in this component works great, so they are rather well written.
💻 Repro or Code Sample
Code of my component:
🤔 Expected Behavior
All dropdowns should expand the same way no matter which input device we use.
😯 Current Behavior
Application throws this:
From logger:
🌍 Your Environment
VS 2022 Pro, Project is Blazor Server Side in .Net 8.