diff --git a/tailbone/static/js/tailbone.buefy.autocomplete.js b/tailbone/static/js/tailbone.buefy.autocomplete.js
index fc64a073..0d61ca79 100644
--- a/tailbone/static/js/tailbone.buefy.autocomplete.js
+++ b/tailbone/static/js/tailbone.buefy.autocomplete.js
@@ -8,6 +8,8 @@ const TailboneAutocomplete = {
serviceUrl: String,
value: String,
initialLabel: String,
+ assignedValue: String,
+ assignedLabel: String,
},
data() {
@@ -43,7 +45,7 @@ const TailboneAutocomplete = {
this.value = null
if (focus) {
this.$nextTick(function() {
- this.$refs.autocomplete.focus()
+ this.focus()
})
}
@@ -51,6 +53,10 @@ const TailboneAutocomplete = {
// $('#' + oid + '-textbox').trigger('autocompletevaluecleared');
},
+ focus() {
+ this.$refs.autocomplete.focus()
+ },
+
getDisplayText() {
if (this.selected) {
return this.selected.label
diff --git a/tailbone/templates/autocomplete.mako b/tailbone/templates/autocomplete.mako
index c9de4507..0ab9f49c 100644
--- a/tailbone/templates/autocomplete.mako
+++ b/tailbone/templates/autocomplete.mako
@@ -64,7 +64,7 @@