Merge pull request #1731 from SevanNerse/master
dynamic option is upgraded on akaunting select and akaunting select r…
This commit is contained in:
commit
eeea1f0029
@ -689,7 +689,11 @@ export default {
|
||||
watch: {
|
||||
selected: function (selected) {
|
||||
if (!this.multiple) {
|
||||
this.selected = selected.toString();
|
||||
if (typeof selected != 'string' && selected !== undefined) {
|
||||
this.selected = selected.toString();
|
||||
} else {
|
||||
this.selected = selected;
|
||||
}
|
||||
} else {
|
||||
if (Array.isArray(this.selected) && !this.selected.length) {
|
||||
this.selected = selected;
|
||||
@ -760,6 +764,9 @@ export default {
|
||||
},
|
||||
|
||||
dynamicOptions: function(options) {
|
||||
this.sort_options = [];
|
||||
this.selected = '';
|
||||
|
||||
if (this.group) {
|
||||
// Option set sort_option data
|
||||
if (!Array.isArray(options)) {
|
||||
|
@ -900,7 +900,11 @@ export default {
|
||||
watch: {
|
||||
selected: function (selected) {
|
||||
if (!this.multiple) {
|
||||
this.selected = selected.toString();
|
||||
if (typeof selected != 'string' && selected !== undefined) {
|
||||
this.selected = selected.toString();
|
||||
} else {
|
||||
this.selected = selected;
|
||||
}
|
||||
} else {
|
||||
if (Array.isArray(this.selected) && !this.selected.length) {
|
||||
this.selected = selected;
|
||||
@ -971,6 +975,9 @@ export default {
|
||||
},
|
||||
|
||||
dynamicOptions: function(options) {
|
||||
this.sort_options = [];
|
||||
this.selected = '';
|
||||
|
||||
if (this.group) {
|
||||
// Option set sort_option data
|
||||
if (!Array.isArray(options)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user