The drop-down list freezes when using the knock-out link for the click


I am using knockout binding on my htm view in ASP.NET MVC project. I am binding a click event to a knockout property. Once I select a value in the dropdown the click event gets called, however the event has complex coding and it takes a little while to complete(5 seconds). Till then, the dropdown menu is freezed(in the expanded mode). Once the method is complete, dropdown will shrink.

How can we overcome this?

If it has complex coding it's nothing odd in its behaviour. Try to bind items before user wants to select the dropdown item and/or optimise your code, and the problem should be gone.