mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-01 11:39:41 +08:00
Fixed condition for #4595
This commit is contained in:
@ -168,7 +168,7 @@ class Modal extends Widget
|
||||
*/
|
||||
protected function renderToggleButton()
|
||||
{
|
||||
if ($this->toggleButton !== null) {
|
||||
if ($this->toggleButton !== false) {
|
||||
$tag = ArrayHelper::remove($this->toggleButton, 'tag', 'button');
|
||||
$label = ArrayHelper::remove($this->toggleButton, 'label', 'Show');
|
||||
if ($tag === 'button' && !isset($this->toggleButton['type'])) {
|
||||
|
||||
Reference in New Issue
Block a user