Weird behavior using ValueChange and EventCallback

Hi,

I think there is a strange behavior when using two ComboBox components with EventCallbacks.

I have a generic component with two related comboboxes, I need to pass DataSource (collection) as parameters and I need to know (from the parent) when the comboboxes change by having EventCallback.


But the moment I wire those events in the parent component, the comboboxes start behave weirdly.

Please look at my sample and try to remove the value on the top combobox (it needs to clear the second one but it doesn't and it displays the previously selected TValue)


If I remove the "OnSelected" events from the parent, the component works but the events are needed in my use case.


I can also resolve it if I do not use directly the parameters in my generic component.
I can duplicate collections and selectedValues in the OnInitialized method and it's working, but it's a bit disappointing to do that.


Am I missing some Blazor/Syncfusion native or normal behavior ?


Attachment: BlazorApp1_843951f2.zip

3 Replies

PM Ponmani Murugaiyan Syncfusion Team February 28, 2022 04:29 PM UTC

Hi Julien, 

Currently we are checking your reported query, we will update further details in 2 business days (March 02, 2022). 

Regards, 
Ponmani M 



PM Ponmani Murugaiyan Syncfusion Team March 2, 2022 04:20 PM UTC

Hi Julien,  

We need additional time to investigate further on this query, we will update the details in 2 business days (March 04, 2022).  

Regards,  
Ponmani M 



PM Ponmani Murugaiyan Syncfusion Team March 8, 2022 02:42 AM UTC

Hi Julien,  

On further investigation, the cause for the issue is invoking the OnSelectedMissionChanged in the ValueChange event of the parent to generic component. So, we suggest you to do the process in the parent component for further customization instead of invoking to get rid of this issue. 

Regards, 
Ponmani M 


Loader.
Up arrow icon