do not leak click events. fixes #1622