Skip to content

Commit

Permalink
Merge pull request #20 from miradnan/patch-1
Browse files Browse the repository at this point in the history
defaultText fix for dropdownList method
  • Loading branch information
zelenin authored Feb 6, 2017
2 parents 509bc7f + bf4b32f commit 3e5e599
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widgets/ActiveField.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public function dropDownList($items, $options = [])
$disabled = ArrayHelper::remove($options, 'disabled', false);
$fluid = ArrayHelper::remove($options, 'fluid', false);
$search = ArrayHelper::remove($options, 'search', true);
$defaultText = ArrayHelper::remove($options, 'defaultText', '');

$this->parts['{input}'] = Dropdown::widget([
'class' => Dropdown::className(),
Expand All @@ -102,6 +103,7 @@ public function dropDownList($items, $options = [])
'compact' => $compact,
'disabled' => $disabled,
'fluid' => $fluid,
'defaultText' => $defaultText
]);
return $this;
}
Expand Down

0 comments on commit 3e5e599

Please sign in to comment.