jQuery dialog breaks changed event on form elements inside the dialog.

Open the dialog and type some. The textarea has an onchange event which should fire when it gets blurred. If you click outside the textarea you see an alert box saying firing ok. But if you go directly to "X" to close the dialog, the change event is never firing in FF

Safari and IE9 works BUT, the alert dialog cancels the close event on jquery dialog. This is a minor issue in my opinion =)

jQuery: 1.6.2
jQuery UI: 1.8.16

Solution

This version uses a simple check in dialog.close handler. This is maybe not a good idea especially if you have many form elements but for this simple case it does the job!