diff --git a/Modal.php b/Modal.php index b7b04c1..d8d70cb 100644 --- a/Modal.php +++ b/Modal.php @@ -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'])) {