This tests onSelect for text fields.