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:


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(){


<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">
		    <input type="text" id="search" dojoType="dijit.form.TextBox"/>

Change History (1)

comment:1 Changed 10 years ago by bill

Component: GeneralDijit
Resolution: invalid
Status: newclosed

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.)

Note: See TracTickets for help on using tickets.