Skip to content

Commit 6308a0f

Browse files
authored
fix(docs): always use array format for <b-form-select> options (#4841)
1 parent 85c7e75 commit 6308a0f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/components/form/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,11 @@ Custom form controls and selects are also supported.
152152
<b-form inline>
153153
<label class="mr-sm-2" for="inline-form-custom-select-pref">Preference</label>
154154
<b-form-select
155+
id="inline-form-custom-select-pref"
155156
class="mb-2 mr-sm-2 mb-sm-0"
157+
:options="[{ text: 'Choose...', value: null }, 'One', 'Two', 'Three']"
156158
:value="null"
157-
:options="{ '1': 'One', '2': 'Two', '3': 'Three' }"
158-
id="inline-form-custom-select-pref"
159-
>
160-
<template v-slot:first>
161-
<option :value="null">Choose...</option>
162-
</template>
163-
</b-form-select>
159+
></b-form-select>
164160

165161
<b-form-checkbox class="mb-2 mr-sm-2 mb-sm-0">Remember my preference</b-form-checkbox>
166162

0 commit comments

Comments
 (0)