Buttonclick opens and closes selector

If the selector is shown, and calling open() again, the selector will
close instead.