Merge "Prevent page scroll to top while clicking on language settings icon"
This commit is contained in:
@@ -149,7 +149,9 @@
|
|||||||
var $this = $( this );
|
var $this = $( this );
|
||||||
|
|
||||||
$this.data( 'module' ).render();
|
$this.data( 'module' ).render();
|
||||||
languageSettings.$window.scrollIntoView();
|
if ( languageSettings.$window.is( ':visible' ) ) {
|
||||||
|
languageSettings.$window.scrollIntoView();
|
||||||
|
}
|
||||||
$settingsMenuItems.find( '.menu-section' ).removeClass( 'active' );
|
$settingsMenuItems.find( '.menu-section' ).removeClass( 'active' );
|
||||||
$this.addClass( 'active' );
|
$this.addClass( 'active' );
|
||||||
} );
|
} );
|
||||||
|
|||||||
Reference in New Issue
Block a user