Add default option for state select

This commit is contained in:
Chandler Swift 2024-03-07 00:49:10 -06:00
parent d2a80397b2
commit 6888c944a4
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -13,6 +13,7 @@
<label class="form-label">State:</label> <label class="form-label">State:</label>
<div class="input-group"> <div class="input-group">
<select class="form-select" v-model="state_name" :disabled="launched"> <select class="form-select" v-model="state_name" :disabled="launched">
<option value="" selected>Select a state…</option>
<option v-for="state in states">{{ state }}</option> <option v-for="state in states">{{ state }}</option>
</select> </select>
<button class="btn btn-primary" type="button" @click="launch" :disabled="launched">Play</button> <button class="btn btn-primary" type="button" @click="launch" :disabled="launched">Play</button>