Fix a bug in which the editor would not always regain focus after dismissing the picker dialog.