Replies: 1 comment
-
@rabauss Hi. thanks you for submit a discussion. could you upload a zip or create a repo for repro this issue? Creating a new repro project and copying the code here is a lot of work for me |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a project where I've attempted to create a custom reusable multiselect component (
MultiSelectProductCategories
). My goal is to allow items to be added both through the multiselect UI and programmatically via external buttons. However, I'm encountering an issue where adding items externally does not reflect in the UI as expected. Here is the current setup and problem:Setup
MultiSelectProductCategories
component with two-way binding to a list of selected categories.MultiSelectGeneric
component insideMultiSelectProductCategories
with two-way binding andItems
list setup.ValueChanged
event callback and bind it to the outer component.The Problem
AddElectronics
method, the item does not appear in the UI.AddElectronics
.What I've Tried
ValueChanged
event is properly invoked when programmatically modifying the list.StateHasChanged()
calls to manually refresh the state._value
withinMultiSelectGeneric
is updated correctly.Request for Help
I would appreciate any insights on what might be missing from my implementation to allow external modifications to reflect properly in the UI. Thank you in advance for your help!
This issue is a follow-up to dotnetcore/BootstrapBlazor#6363 , where I'm encountering difficulties implementing a custom multiselect component with external item addition reflecting properly in the UI.
Beta Was this translation helpful? Give feedback.
All reactions