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