Using it as a controlled component. One of the duplicate entries aren't cleared when the options are changed.