Merge pull request #1740 from SevanNerse/master
fixing an exception that throws if the value of 'multiple' is true
This commit is contained in:
commit
aa33bd92f4
@ -420,7 +420,7 @@ export default {
|
|||||||
let options = [];
|
let options = [];
|
||||||
|
|
||||||
this.selected.forEach(function (selected_option_id, selected_index) {
|
this.selected.forEach(function (selected_option_id, selected_index) {
|
||||||
if (option.key == this.selected) {
|
if (option.key == selected_option_id) {
|
||||||
indexs.push(selected_index);
|
indexs.push(selected_index);
|
||||||
values.push(option.id);
|
values.push(option.id);
|
||||||
labels.push(option.value);
|
labels.push(option.value);
|
||||||
@ -451,7 +451,7 @@ export default {
|
|||||||
let options = [];
|
let options = [];
|
||||||
|
|
||||||
this.selected.forEach(function (selected_option_id, selected_index) {
|
this.selected.forEach(function (selected_option_id, selected_index) {
|
||||||
if (option.key == this.selected) {
|
if (option.key == selected_option_id) {
|
||||||
indexs.push(selected_index);
|
indexs.push(selected_index);
|
||||||
values.push(option.id);
|
values.push(option.id);
|
||||||
labels.push(option.value);
|
labels.push(option.value);
|
||||||
|
@ -536,7 +536,7 @@ export default {
|
|||||||
let options = [];
|
let options = [];
|
||||||
|
|
||||||
this.selected.forEach(function (selected_option_id, selected_index) {
|
this.selected.forEach(function (selected_option_id, selected_index) {
|
||||||
if (option.value == this.selected) {
|
if (option.value == selected_option_id) {
|
||||||
indexs.push(selected_index);
|
indexs.push(selected_index);
|
||||||
values.push(option.id);
|
values.push(option.id);
|
||||||
labels.push(option.value);
|
labels.push(option.value);
|
||||||
@ -567,7 +567,7 @@ export default {
|
|||||||
let options = [];
|
let options = [];
|
||||||
|
|
||||||
this.selected.forEach(function (selected_option_id, selected_index) {
|
this.selected.forEach(function (selected_option_id, selected_index) {
|
||||||
if (option.value == this.selected) {
|
if (option.value == selected_option_id) {
|
||||||
indexs.push(selected_index);
|
indexs.push(selected_index);
|
||||||
values.push(option.id);
|
values.push(option.id);
|
||||||
labels.push(option.value);
|
labels.push(option.value);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user