Fixed tabIndex on the connector page. Tab key should work as expected now.
This commit is contained in:
@@ -155,7 +155,7 @@
|
|||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
:name="field.field.name"
|
:name="field.field.name"
|
||||||
:placeholder="field.field.example"
|
:placeholder="field.field.example"
|
||||||
style="display: none"
|
style="display: none;"
|
||||||
@input="changed(key, field, false)"
|
@input="changed(key, field, false)"
|
||||||
@change="changed(key, field, true)"
|
@change="changed(key, field, true)"
|
||||||
/>
|
/>
|
||||||
@@ -275,7 +275,15 @@
|
|||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="preloaderIDName.length > 0"
|
v-if="preloaderIDName.length > 0"
|
||||||
style="width: 1px; height: 1px; margin: 10px; position: absolute; top: 0; bottom: 0; overflow: hidden;"
|
style="
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
margin: 10px;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
overflow: hidden;
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<div :id="preloaderIDName">
|
<div :id="preloaderIDName">
|
||||||
{{ current.title || connector.name }} wizard
|
{{ current.title || connector.name }} wizard
|
||||||
@@ -400,7 +408,13 @@ export default {
|
|||||||
const f = fieldBuilder.build(tabIndex, i, fields[i]);
|
const f = fieldBuilder.build(tabIndex, i, fields[i]);
|
||||||
|
|
||||||
this.current.fields.push(f);
|
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;
|
this.submitterTabIndex = tabIndex > 0 ? tabIndex : 1;
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ export function build(tabIndex, i, field) {
|
|||||||
this.suggestions.push({
|
this.suggestions.push({
|
||||||
title: suggestions[v].title,
|
title: suggestions[v].title,
|
||||||
value: suggestions[v].value,
|
value: suggestions[v].value,
|
||||||
fields: suggestions[v].meta
|
fields: suggestions[v].meta,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -160,12 +160,12 @@ export function build(tabIndex, i, field) {
|
|||||||
return {
|
return {
|
||||||
title: "Input",
|
title: "Input",
|
||||||
value: this.loadStored(defaultValue),
|
value: this.loadStored(defaultValue),
|
||||||
fields: {}
|
fields: {},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.suggestions[this.selected];
|
return this.suggestions[this.selected];
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
disableSuggestionsForInput(val) {
|
disableSuggestionsForInput(val) {
|
||||||
this.blockedSuggestionValue = val;
|
this.blockedSuggestionValue = val;
|
||||||
@@ -208,6 +208,6 @@ export function build(tabIndex, i, field) {
|
|||||||
},
|
},
|
||||||
selectedSuggestionIndex() {
|
selectedSuggestionIndex() {
|
||||||
return this.suggestion.selected;
|
return this.suggestion.selected;
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user