[Xsltforms-support] xf:hide fails to close xf:dialog if [Enter] key has been pressed in between
Brought to you by:
alain-couthures
From: Kostis A. <ank...@gm...> - 2010-04-14 20:31:47
|
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> |