Call focus() before select() so that we scroll to the element