I think i found the problem.
The problem in these 2 browsers stems from the fact that after the
dialog get shown due to some show-trigger activation,
that focused-trigger remains its focus.
So, when pressing [Enter], the show-trigger control gets activated once more,
and the var Dialog.depth get increased, although the dialog is already visible.
I remind that the dialog-surround is hidden when the Dialog.depth var
becomes zero.
Eventually, there are not enough dialogs to decrease Dialog.depth to
hide the dialog-surround div.
Now i have to think of a fix...:-)
On Wed, Apr 14, 2010 at 8:31 PM, Kostis Anagnostopoulos
<ank...@gm...> wrote:
> Hi again,
>
> A show-stfopping bug exists on <xf:dialog> for IE and FF:
>
> If after a dialog has been opened,
> the user presses [Enter],
> then a <xf:hide>action fails to completely hide the dialog,
> since the back-shade remains
>
> Reported agaisnt FF and IE, rev385.
> Chrome OK.
>
>
> Regards,
> Kostis
>
> file: simpleDialogCloseProblem.xml
> -------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet href="xsltforms/xsltforms.xsl" type="text/xsl"?>
> <?xsltforms-options debug="yes" lang="en"?>
> <html
> xmlns="http://www.w3.org/1999/xhtml"
> xmlns:xf="http://www.w3.org/2002/xforms"
> xmlns:ev="http://www.w3.org/2001/xml-events"
>>
> <head>
> <title>Dialog Closing Problem Instance</title>
>
> <xf:model id="model-main" >
> <xf:instance><root/></xf:instance>
> </xf:model>
>
> </head>
>
> <body>
> <xf:trigger>
> <xf:label>Show</xf:label>
> <xf:show dialog="dlg1" ev:event="DOMActivate" />
> </xf:trigger>
>
> <xf:dialog id="dlg1" >
> <p>In Firefox or IE, press [Enter] before hitting 'OK' and the
> dialog-shade does not close anymore!</p>
> <xf:trigger>
> <xf:label>OK</xf:label>
> <xf:hide dialog="dlg1" ev:event="DOMActivate" />
> </xf:trigger>
> </xf:dialog>
> </body>
> </html>
>
|