Eat pointer events and clicks
Fix multiple dialogs bug (beforeshow)

Multiple dialogs could be shown if .show() was called on a second dialog
during beforeshow.