…oring the selectedItem index in a local variable rather than looking it up everytime in the matchIndex method. Before this fix the performance decreases exponentially the higher the selectedIndex is. With 500+ items in a dropdown performance is increased by 10-15 seconds(!)
Problem in the close function
Please update css too.
No change have been made in image dropdown