mirror of
https://github.com/aelve/guide.git
synced 2024-12-23 21:02:13 +03:00
Fix refreshing page after adding item
This commit is contained in:
parent
9f62400c45
commit
25c8e3ff03
@ -11,12 +11,15 @@
|
|||||||
<v-form
|
<v-form
|
||||||
lazy-validation
|
lazy-validation
|
||||||
v-model="isValid"
|
v-model="isValid"
|
||||||
@keydown.native.enter="submit"
|
@keydown.native.prevent.enter="submit"
|
||||||
>
|
>
|
||||||
<v-text-field
|
<!-- v-if="value" - cause without it autofocus triggers on first modal open
|
||||||
|
https://stackoverflow.com/questions/51472947/vuetifys-autofocus-works-only-on-first-modal-open -->
|
||||||
|
<v-text-field
|
||||||
|
v-if="value"
|
||||||
|
autofocus
|
||||||
class="mb-2"
|
class="mb-2"
|
||||||
label="Item name"
|
label="Item name"
|
||||||
autofocus
|
|
||||||
:rules="itemValidationRules"
|
:rules="itemValidationRules"
|
||||||
v-model="itemName"
|
v-model="itemName"
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user