Avoid form submit when using modal toggler.

Fixes #6