File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
app/code/Magento/Ui/view/base/web/js/form/element Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,24 @@ define([
1010
1111 return Select . extend ( {
1212 defaults : {
13- size : 5
13+ size : 5
1414 } ,
1515
16+ /**
17+ * Calls 'getInitialValue' of parent and if the result of it is not empty
18+ * string, returs it, else returnes caption or first found option's value
19+ *
20+ * @returns {Number|String }
21+ */
1622 getInititalValue : function ( ) {
17- var value = __super__ . getInititalValue . apply ( this , arguments ) ;
23+ var value = this . _super ( ) ;
1824
1925 return _ . isString ( value ) ? value . split ( ',' ) : value ;
2026 } ,
2127
2228 /**
2329 * Defines if value has changed
24- * @return {Boolean }
30+ * @returns {Boolean }
2531 */
2632 hasChanged : function ( ) {
2733 var value = this . value ( ) ,
@@ -30,4 +36,4 @@ define([
3036 return ! utils . identical ( value , initial ) ;
3137 }
3238 } ) ;
33- } ) ;
39+ } ) ;
You can’t perform that action at this time.
0 commit comments