Opened 10 years ago
Closed 10 years ago
#13698 closed defect (invalid)
Widget on tab not focused on first show
Reported by: | jmeijer | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | Dijit | Version: | 1.6.1 |
Keywords: | TabContainer | Cc: | |
Blocked By: | Blocking: |
Description
I have a Dialog containing a tabcontainer which contains some widgets. When I open the dialog, the first tab is selected/focused and not the first widget on the tab.
I tried to connect the selectChild event to focus the first widget, but this only workes when clicking on the tab:
dojo.connect(dijit.byId("searchPatientTabs"),"selectChild", function(){ dijit.byId("search").focus(); });
Html:
<div id="searchPatient" dojoType="dijit.Dialog"> <div id="searchPatientTabs" dojoType="dijit.layout.TabContainer" style="width: 600px; height: 420px;"> <div dojoType="dijit.layout.ContentPane" title="Search"> <table> <tr> <td> <input type="text" id="search" dojoType="dijit.form.TextBox"/> </td> </tr> </table> </div> </div> </div>
Change History (1)
comment:1 Changed 10 years ago by
Component: | General → Dijit |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Probably you can connect to Dialog.onShow(), but in the future please post questions to the dojo-interest mailing list rather than here. (Note that the current behavior, to focus on the tab, is expected.)