fixing an exception that throws if the value of 'multiple' is true
This commit is contained in:
parent
40fdf89d29
commit
050a424ebf
@ -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);
|
||||||
|
@ -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