Skip to content

Commit

Permalink
add resizeObserver following active tabpanel (#213)
Browse files Browse the repository at this point in the history
Fixes #208
  • Loading branch information
nobbyfix authored Jan 25, 2025
1 parent b8c1e75 commit d5e19e6
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 d5e19e6

Please sign in to comment.