refs #102 Add dummy form-item in jump modal to stop reloading

This commit is contained in:
AkiraFukushima 2018-03-24 00:19:53 +09:00
parent 432d4ff207
commit 7c184b1d23
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@
<li v-for="c in filterdChannel" :class="c.name === selectedChannel.name ? 'channel-list-item selected' : 'channel-list-item'" @click="jump(c)" @mouseover="changeSelected(c)">{{ c.name }}</li>
</ul>
</div>
<!-- Dummy form to guard submitting with enter -->
<el-form-item class="hidden">
<el-input></el-input>
</el-form-item>
</el-form>
</el-dialog>
</template>
@ -124,5 +128,9 @@ export default {
}
}
}
.hidden {
display: none;
}
}
</style>