Skip to content

Commit 4c4c034

Browse files
author
Olexii Korshenko
committed
Merge remote-tracking branch 'mpi/develop' into develop
2 parents cee4510 + cbbde37 commit 4c4c034

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/multiselect.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
});

0 commit comments

Comments
 (0)