fix: set focus to newly added environment key field

This commit is contained in:
Liyas Thomas
2022-11-02 18:11:13 +05:30
parent 0069f51ea4
commit 3084a40729
2 changed files with 2 additions and 0 deletions

View File

@@ -56,6 +56,7 @@
>
<input
v-model="env.key"
v-focus
class="flex flex-1 px-4 py-2 bg-transparent"
:placeholder="`${t('count.variable', { count: index + 1 })}`"
:name="'param' + index"

View File

@@ -57,6 +57,7 @@
>
<input
v-model="env.key"
v-focus
class="flex flex-1 px-4 py-2 bg-transparent"
:class="isViewer && 'opacity-25'"
:placeholder="`${t('count.variable', { count: index + 1 })}`"