Handle missing this.$refs.textboxKey ref

This commit is contained in:
Joel Collins 2020-12-07 11:12:07 +00:00
parent 599c31534d
commit 9d04842c56

View file

@ -98,7 +98,9 @@ export default {
this.$emit("input", newSelected);
// Move focus back to key textbox
this.$refs.textboxKey.focus();
if (this.$refs.textboxKey) {
this.$refs.textboxKey.focus();
}
},
delMetadataKey: function(key) {