Skip to content

Commit

Permalink
add resizeObserver following active tabpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
nobbyfix committed Jan 25, 2025
1 parent b8c1e75 commit 29d4ec7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ext.tabberNeue/ext.tabberNeue.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,9 @@ class TabberEvent {
// Prevent default anchor actions
e.preventDefault();
this.activeTab = tab;
resizeObserver.unobserve( this.activeTabpanel );
this.activeTabpanel = TabberAction.getTabpanel( this.activeTab );
resizeObserver.observe( this.activeTabpanel );

// Update the URL hash without adding to browser history
if ( config.updateLocationOnTabChange ) {
Expand Down

0 comments on commit 29d4ec7

Please sign in to comment.