mirror of
https://github.com/aelve/guide.git
synced 2024-12-24 13:26:08 +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-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-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