How to clear a previously selected dropdown option when a field is hidden?