This commit is contained in:
@@ -64,6 +64,7 @@ export default {
|
||||
type: Number,
|
||||
default: null
|
||||
},
|
||||
|
||||
readonly: { type: Boolean, default: false },
|
||||
disabled: { type: Boolean, default: false },
|
||||
ayaType: {
|
||||
@@ -78,16 +79,17 @@ export default {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
||||
label: { type: String, default: "" }
|
||||
},
|
||||
watch: {
|
||||
ayaType(val,oldVal){
|
||||
if(val!=oldVal && oldVal!=null){
|
||||
//change of type so clear out the list
|
||||
this.searchResults=[];
|
||||
this.searchEntry=null;
|
||||
this.lastSelection=null;
|
||||
this.initialized=false;
|
||||
ayaType(val, oldVal) {
|
||||
if (val != oldVal && oldVal != null) {
|
||||
//change of type so clear out the list
|
||||
this.searchResults = [];
|
||||
this.searchEntry = null;
|
||||
this.lastSelection = null;
|
||||
this.initialized = false;
|
||||
}
|
||||
},
|
||||
value(val) {
|
||||
@@ -123,6 +125,9 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getFullSelectionValue() {
|
||||
return this.lastSelection;
|
||||
},
|
||||
hasError: function() {
|
||||
return this.errors.length > 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user