React select onchange not working