"visible" Property Not Work With Bshtml::button In Bsnavbar Widget (Yii-Bootstrap3-Module)

The “visible” property doesn’t work width BsHtml::button, but it work with BsNav item…





$this->widget('bootstrap.widgets.BsNavbar', array(

    'collapse' => true,

    'brandLabel' => BsHtml::icon(BsHtml::GLYPHICON_HOME),

    'brandUrl' => Yii::app()->homeUrl,

    'items' => array(


..............

  array(

            'class' => 'bootstrap.widgets.BsNav',

            'type' => 'navbar',

            'activateParents' => true,

            'items' => array(

 array(

                    'label' => 'Logout (' . Yii::app()->user->name . ')',

                    'pull' => BsHtml::NAVBAR_NAV_PULL_RIGHT,

		    'pull'=> 'btn btn-default navbar-btn',

                    'url' => array(

                        '/site/logout'

                    ),

                    'visible' => !Yii::app()->user->isGuest

                ),

.............

BsHtml::button('Login', array(

'icon' => BsHtml::GLYPHICON_LOG_IN,

'visible' => !Yii::app()->user->isGuest, 

'class'=>'btn btn-default navbar-btn',  

'url' => '#',

'data-toggle'=>'modal',

'data-target'=>'#Mlogin')),  

....

)),

...

))



Have the same problem, anyone can help?