Selected state persists?

Hi, I created a dropdown component. When the first option is selected and then I try to change it to another option, the first option gets chosen again. Can someone help me?