Thank you for reporting this bug. We will make it our priority to review this report.
[OPEN-1302] Ext.TabPanel does not check return status of CardLayout.setActiveItem
Ext version tested:
Browser versions tested against:
- Ext.TabPanel.setActiveTab calls CardLayout.setActiveItem but does not check the return value. CardLayout.setActiveItem can return false if the active Panel could not be hidden. TabPanel therefore permits changing tabs when CardLayout has not changed the active item.
Steps to reproduce the problem:
html:'<h1>Tab1 HTML contents</h1>',
html:'<h1>Tab2 HTML contents</h1>',
- Run code example
- Click Tab2
- Observe that the tab change is allowed but Tab1's contents are still displayed
The result that was expected:
- Tab should not be allowed to change
The result that occurs instead:
- Check return value of this.layout.setActiveItem(item); in TabPanel.setActiveTab