Note that there are some explanatory texts on larger screens.

plurals
  1. PODojo ValidationTextbox error tooltip remains on page after Dialog is closed with ESC key
    primarykey
    data
    text
    <p>I am using <strong>Dojo 1.5, theme Claro.</strong> I have a dojo dialog that contains a dojo form, a ValidationTextbox and a submit button. If the textbox has any kind of error, a tooltip showing a message is displayed next to it. Now, if the error tooltip is displayed, when I press the ESC key the dialog is closed, but the tooltip remains on page.</p> <p>Here is the code I'm using for addNewUser.html dialog:</p> <pre><code>&lt;form id="formAddUser" dojoType="dijit.form.Form"&gt; &lt;input type="text" id="txtUserName" style="width: 200px" dojoType="dijit.form.ValidationTextBox" required="true" regExp="[a-zA-Z0-9 \._-]{3,15}" invalidMessage="Error message" missingMessage="User Name is required." trim="true"&gt;&lt;/input&gt; &lt;div dojoType="dijit.form.Button" onClick="dijit.byId('dlgAddUser').hide();"&gt;Cancel&lt;/div&gt; &lt;/form&gt; </code></pre> <p>Here is the code I'm using to open the dialog:</p> <pre><code>function ShowAddUserDialog() { dojo.require("dijit.Dialog"); dojo.require("dijit.form.ValidationTextBox"); dojo.require("dijit.form.Form"); dojo.require("dijit.form.Button"); var dlg = dijit.byId("dlgAddUser"); if (dlg == null) dlg = new dijit.Dialog({ id : "dlgAddUser", autofocus: false }); dlg.connect(dlg, "onHide", function(){ dlg.destroyRecursive(); }); dlg.set("href", "addNewUser.html"); dlg.set("style", "width: 370px;"); dlg.set("title", "Add New User"); dlg.connect(dlg, "onLoad", function(){ dijit.byId("txtUserName").focus(); }); dlg.show(); } </code></pre> <p>Any idea about this problem?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload