Skip to content

Commit

Permalink
pkp#9658 Add large support for FieldSelect to be consistent with text…
Browse files Browse the repository at this point in the history
… inputs on invitation pages
  • Loading branch information
jardakotesovec committed Jul 3, 2024
1 parent cfb1849 commit 6420177
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/components/forms/FieldSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ class FieldSelect extends Field
/** @var array The options which can be selected */
public $options = [];

/** @var string Accepts: `normal` or `large` */
public $size = 'normal';

/**
* @copydoc Field::getConfig()
*/
public function getConfig()
{
$config = parent::getConfig();
$config['options'] = $this->options;
$config['size'] = $this->size;

return $config;
}
Expand Down

0 comments on commit 6420177

Please sign in to comment.