- 313 new markdown files created - 30 relationships embedded - 313 entries indexed - State initialized with usage data
811 B
811 B
| id | type | title | tags | importance | confidence | created | updated | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 36d37754-80e8-4efa-a43f-48ade3f0fb40 | solution | Foundry VTT ApplicationV2 Tab Switching Fix |
|
0.8 | 0.8 | 2025-12-14T22:11:36.545208+00:00 | 2025-12-14T22:11:36.545208+00:00 |
When using ApplicationV2 parts-based rendering for tabs, switching tabs causes content to stack instead of replace. ApplicationV2 appends new parts without removing old ones from the DOM. Solution: Add _cleanupInactiveTabs() method in _onRender that removes .tab-content elements that don't match the active tab class. Each tab template should have a unique class like main-tab, inventory-tab, etc. The cleanup method checks for elements with .tab-content class and removes those that don't have the activeTabClass.