Added extra setActive call for focus since real focus is async on some browsers.