We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76795a0 commit 4f8c1a6Copy full SHA for 4f8c1a6
app/code/Magento/Ui/Component/Form/Element/Multiselect.php
@@ -3,12 +3,22 @@
3
* Copyright © 2015 Magento. All rights reserved.
4
* See COPYING.txt for license details.
5
*/
6
+
7
namespace Magento\Ui\Component\Form\Element;
8
-/**
9
- * Class Multiselect
10
- */
11
-class Multiselect extends Select
+class MultiSelect extends Select
12
{
13
const NAME = 'multiselect';
+ const DEFAULT_SIZE = 6;
14
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ public function prepare()
19
+ {
20
+ $config['size'] = self::DEFAULT_SIZE;
21
+ $this->setData('config', array_replace_recursive((array)$this->getData('config'), $config));
22
+ parent::prepare();
23
+ }
24
}
0 commit comments