This is just the browser reacting to the fact that the mouse has in
fact left that div.  The only thing I can think of is to add a check
in your handler to see if a flag has been set that the dialog is
opening.  You could set that flag when the user clicks whatever it is
that they click to open the dialog and then clear the flag in the
dialog's open callback.

On Jun 3, 3:31 pm, tom s <[email protected]> wrote:
> I am using a jQuery UI dialog (modal: true), which works fine.
> The div from which the the user opens the dialog has a mouseleave
> event bound to it.
> When the dialog opens, the mouseleave event on that div instantly gets
> triggered (in FF 3.0.10).
> (and I don't want that to happen, but I do want a modal dialog)
>
> Questions:
>
> 1. Is the dialog triggering this event, or is this the DOM-standard
> way of reacting the addition of the 'ui-widget-overlay' div?
> 2. Any smart way to prevent the event trigger (other than unbinding
> the mouseleave event)?
>
> thanks
>
> tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to