1
0

fix: x-if->x-show for page select to fix x-model+x-for race

This commit is contained in:
Maksim Totmin 2026-06-17 14:00:35 +07:00
parent fe8ca312c4
commit 773dc7350a

View File

@ -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">