Ticket #5069 (closed bug: fixed)
ui.tabs.add creates two tab panels when using a full URL
|Reported by:||snover||Owned by:|
|Keywords:||tabify, tabId, add||Cc:|
When creating a new tab by passing in a full URL to ui.tabs.add, two tab panels are added to the DOM—one by ui.tabs.add and another by ui.tabs._tabify. The panel created by ui.tabs.add never gets used, never gets removed, and ends up sitting wasting space for no reason.
I’m not familiar enough yet with the internals of jQuery UI to know what the proper solution is; removing all references to $panel in ui.tabs.add gets things working somewhat better for AJAX calls, but breaks page fragments completely.
The generated ID also ends up double-incremented because ui.tabs._tabId gets called twice: once to get the id for the tab in ui.tabs.add, and then again to get a tab panel ID in ui.tabs._tabify.
comment:14 Changed 2 years ago by scott.gonzalez
- Status changed from new to closed
- Resolution set to fixed