fancyapps/fancyBox — Issue #9: Any <button> element closes lightbox
Author: SpoonNZ
Created: 2011-11-23 05:20:29+00:00
State: open

Using the ajax method. Here's the sample code for the target page
```html
Do nothing
```
Obviously clicking on the button should do nothing. Instead, it closes the lightbox. Frustrating when you're using the button to submit a form or something.

Adding a click event handler to the elements with event.preventDefault(); return false; avoids it, however in my case I want the button to submit its form, with a submit() handler on the form catching it and submitting via ajax.

I don't think the issue is necessarily within fancyBox, however it manifests itself here in a way I've never noticed before.