fix: x-if->x-show for page select to fix x-model+x-for race
This commit is contained in:
parent
2fb5d2a0f0
commit
75f09cea50
@ -342,8 +342,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template x-if="editForm.actions[t].type === 'page'">
|
<div class="form-group" x-show="editForm.actions[t].type === 'page'">
|
||||||
<div class="form-group">
|
|
||||||
<select x-model="editForm.actions[t].page">
|
<select x-model="editForm.actions[t].page">
|
||||||
<option value="">-- select --</option>
|
<option value="">-- select --</option>
|
||||||
<template x-for="p in pages" :key="p.name">
|
<template x-for="p in pages" :key="p.name">
|
||||||
@ -351,7 +350,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
|
|
||||||
<template x-if="editForm.actions[t].type === 'keyboard'">
|
<template x-if="editForm.actions[t].type === 'keyboard'">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -441,8 +439,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template x-if="editForm.actions.hold[phase].type === 'page'">
|
<div class="form-group" x-show="editForm.actions.hold[phase].type === 'page'">
|
||||||
<div class="form-group">
|
|
||||||
<select x-model="editForm.actions.hold[phase].page">
|
<select x-model="editForm.actions.hold[phase].page">
|
||||||
<option value="">-- select --</option>
|
<option value="">-- select --</option>
|
||||||
<template x-for="p in pages" :key="p.name">
|
<template x-for="p in pages" :key="p.name">
|
||||||
@ -450,7 +447,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
|
|
||||||
<template x-if="editForm.actions.hold[phase].type === 'keyboard'">
|
<template x-if="editForm.actions.hold[phase].type === 'keyboard'">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user