diff --git a/ui/widgets/connector.vue b/ui/widgets/connector.vue
index cf2b806..55f554b 100644
--- a/ui/widgets/connector.vue
+++ b/ui/widgets/connector.vue
@@ -155,7 +155,7 @@
autocomplete="off"
:name="field.field.name"
:placeholder="field.field.example"
- style="display: none"
+ style="display: none;"
@input="changed(key, field, false)"
@change="changed(key, field, true)"
/>
@@ -275,7 +275,15 @@
{{ current.title || connector.name }} wizard
@@ -400,7 +408,13 @@ export default {
const f = fieldBuilder.build(tabIndex, i, fields[i]);
this.current.fields.push(f);
- tabIndex = f.nextTabIndex();
+
+ const newTabIndex = f.nextTabIndex();
+
+ // Ignore if the field does not contain tabIndex
+ if (newTabIndex > 1) {
+ tabIndex = newTabIndex;
+ }
}
this.submitterTabIndex = tabIndex > 0 ? tabIndex : 1;
diff --git a/ui/widgets/connector_field_builder.js b/ui/widgets/connector_field_builder.js
index 653435b..204ca29 100644
--- a/ui/widgets/connector_field_builder.js
+++ b/ui/widgets/connector_field_builder.js
@@ -151,7 +151,7 @@ export function build(tabIndex, i, field) {
this.suggestions.push({
title: suggestions[v].title,
value: suggestions[v].value,
- fields: suggestions[v].meta
+ fields: suggestions[v].meta,
});
}
},
@@ -160,12 +160,12 @@ export function build(tabIndex, i, field) {
return {
title: "Input",
value: this.loadStored(defaultValue),
- fields: {}
+ fields: {},
};
}
return this.suggestions[this.selected];
- }
+ },
},
disableSuggestionsForInput(val) {
this.blockedSuggestionValue = val;
@@ -208,6 +208,6 @@ export function build(tabIndex, i, field) {
},
selectedSuggestionIndex() {
return this.suggestion.selected;
- }
+ },
};
}