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 e8caeec commit 0a0bf62Copy full SHA for 0a0bf62
1 file changed
src/select.js
@@ -973,7 +973,11 @@
973
if ($select.multiple){
974
var resultMultiple = [];
975
var checkFnMultiple = function(list, value){
976
- if (!list || !list.length) return;
+ //if the list is empty add the value to the list
977
+ if (!list || !list.length){
978
+ resultMultiple.unshift(value);
979
+ return true;
980
+ }
981
for (var p = list.length - 1; p >= 0; p--) {
982
locals[$select.parserResult.itemName] = list[p];
983
result = $select.parserResult.modelMapper(scope, locals);
0 commit comments