[BUG] Extreme CPU usage by Ant-Blazor Select-Component #1837
Labels
area/core
Issue/Discussion/PR that has to do with the core of the toolkit
bug
Something isn't working
unverified
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Dear Community
I am not sure if this problem is caused by the Maui ToolKit Nuget or if the Ant component Select has a problem.
Expected Behavior
It is about the following:
When using the Ant-Blazor Select component in a Blazor Server or MAUI Blazor App, it works as expected. However, if you also install ".NET MAUI Community Toolkit" via Nuget in a MAUI Blazor app, the Ant-Blazor Select component hangs. You will notice an extreme CPU usage which could be due to a focus event (possibly via JS Interopt).
It is interesting that this effect is not apparent with an HTML Select component. I personally think it is an Ant-Select component problem, but I don't want to rule out that this problem could also be caused by the ToolKit library. The question is why this is only the case with Ant-Select and not with HTL Select?
And by HTML Select is no problem:
Steps To Reproduce
Start github Project and select an entry from Ant-Select list.
Link to public reproduction project repository
https://github.com/true-perfect-code/MauiAppAntToolKit
Environment
EDIT:
This problem has also been reported to the Ant-Blazor community and can be found here:
ant-design-blazor/ant-design-blazor#3832
If you are using a faster PC, you will not notice this problem. I have described this behavior in the Ant community on GitHub (see link above under point 1).
However, the problem exists because the CPU load is extremely high for about 10-15 seconds! It would be nice to know the reason for this.
The text was updated successfully, but these errors were encountered: