Fixed an issue with opening popup

Only seemed to work if there were multiple pickers on the page. Was
due to the digest cycle not being run on focus.

Related to issue #1