views: Fix auto-scrolling issue with autogen forms (#544)

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Pearl Dsilva 2020-07-27 10:39:48 +05:30 committed by Rohit Yadav
parent efc11e8131
commit 1ee5654209
1 changed files with 4 additions and 4 deletions

View File

@ -175,7 +175,7 @@
}]"
:placeholder="field.description"
>
<a-select-option :key="null">{{ }}</a-select-option>
<a-select-option key="" >{{ }}</a-select-option>
<a-select-option v-for="(opt, optIndex) in currentAction.mapping[field.name].options" :key="optIndex">
{{ opt }}
</a-select-option>
@ -196,7 +196,7 @@
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}"
>
<a-select-option :key="null">{{ }}</a-select-option>
<a-select-option key="">{{ }}</a-select-option>
<a-select-option v-for="(opt, optIndex) in field.opts" :key="optIndex">
{{ opt.name || opt.description || opt.traffictype || opt.publicip }}
</a-select-option>
@ -216,7 +216,7 @@
return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
}"
>
<a-select-option :key="null">{{ }}</a-select-option>
<a-select-option key="">{{ }}</a-select-option>
<a-select-option v-for="opt in field.opts" :key="opt.id">
{{ opt.name || opt.description || opt.traffictype || opt.publicip }}
</a-select-option>
@ -827,7 +827,7 @@ export default {
if (param.name !== key) {
continue
}
if (input === undefined || input === null) {
if (input === undefined || input === null || input === '') {
if (param.type === 'boolean') {
params[key] = false
}