function _handleExpandBegin() {
      this.dispatchEvent( 'expandBegin', { target: this } );
      // If it's the desktop view, hide the "Search" button.
      if ( _isInDesktop() ) { _triggerDom.classList.add( 'u-hidden' ); }
      _contentDom.classList.remove( 'u-invisible' );
      _searchInputDom.select();

      document.body.addEventListener( 'mousedown', _handleBodyClick );
    }
/**
     * Event handler for when FlyoutMenu expand transition begins.
     * Use this to perform post-expandBegin actions.
     */
Event handler for when FlyoutMenu expand transition begins.
Use this to perform post-expandBegin actions.
Event handler for when FlyoutMenu expand transition begins . Use this to perform post - expandBegin actions .
function _handleExpandBegin() {
      this.dispatchEvent( 'expandBegin', { target: this } );
      if ( _isInDesktop() ) { _triggerDom.classList.add( 'u-hidden' ); }
      _contentDom.classList.remove( 'u-invisible' );
      _searchInputDom.select();
      document.body.addEventListener( 'mousedown', _handleBodyClick );
    }
function _handleExpandBegin ( ) { this . dispatchEvent ( 'expandBegin' , { target : this } ) ; if ( _isInDesktop ( ) ) { _triggerDom . classList . add ( 'u-hidden' ) ; } _contentDom . classList . remove ( 'u-invisible' ) ; _searchInputDom . select ( ) ; document . body . addEventListener ( 'mousedown' , _handleBodyClick ) ; }
Event handler for when FlyoutMenu expand transition begins.
Event handler for when FlyoutMenu expand transition begins .
// If it's the desktop view, hide the "Search" button.