Menu

#722 Tabbox setSelectedIndex() should not fire onSelect event

3.0.0
closed
nobody
5
2007-11-15
2007-11-14
Henri Chen
No

The button call Tabbox setSelectedIndex to change tab and it fires onSelect which violate the spec. API should not fire event.

<window border="normal" title="Test" height="200px" width="200px">
<tabbox id="tbx" onSelect='alert("onSelect fired")'>
<tabs>
<tab label="tab1"/>
<tab label="tab2"/>
</tabs>
<tabpanels>
<tabpanel>This is tabpanel 1</tabpanel>
<tabpanel>This is tabpanel 2</tabpanel>
</tabpanels>
</tabbox>
<button label="change to tab2" onClick="tbx.setSelectedIndex(1)"/>
</window>

Discussion

  • Jumper Chen

    Jumper Chen - 2007-11-15

    Logged In: YES
    user_id=1684431
    Originator: NO

    Fixed since 11/15.

     
  • Jumper Chen

    Jumper Chen - 2007-11-15
    • status: open --> closed
     

Log in to post a comment.