Add first fixed collection option automatically

This commit is contained in:
Iván Ovejero 2021-09-09 11:02:29 +02:00
parent 4b3fc14e15
commit 3045c0de1e

View file

@ -79,6 +79,11 @@ export default mixins(genericHelpers)
selectedOption: undefined,
};
},
mounted() {
this.$nextTick(function () {
this.optionSelected(this.parameter.options[0].name);
});
},
computed: {
getPlaceholderText (): string {
return this.parameter.placeholder ? this.parameter.placeholder : 'Choose Option To Add';