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