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