Skip to content

Commit 00fd3f1

Browse files
committed
fix: cannot select a previously selected field when use single selectableType. close #120
1 parent 1c1f20b commit 00fd3f1

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

example/SelectControl.vue

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,9 @@
5252
<div>
5353
<label>deep</label>
5454
<select v-model="deep">
55-
<option :value="2">
56-
2
57-
</option>
58-
<option :value="3">
59-
3
60-
</option>
61-
<option :value="4">
62-
4
63-
</option>
55+
<option :value="2">2</option>
56+
<option :value="3">3</option>
57+
<option :value="4">4</option>
6458
</select>
6559
</div>
6660
<div>

src/components/CheckController/index.vue

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
<label :class="[`vjs-check-controller`, checked ? 'is-checked' : '']" @click.stop>
44
<span :class="`vjs-check-controller__inner is-${uiType}`" />
55
<input
6-
v-model="model"
6+
:checked="model"
77
:class="`vjs-check-controller__original is-${uiType}`"
88
:type="uiType"
99
@change="$emit('change', model)"
10-
@focus="focus = true"
11-
@blur="focus = false"
1210
/>
1311
</label>
1412
</template>
@@ -24,11 +22,6 @@ export default {
2422
},
2523
isMultiple: Boolean,
2624
},
27-
data() {
28-
return {
29-
focus: false,
30-
};
31-
},
3225
computed: {
3326
uiType() {
3427
return this.isMultiple ? 'checkbox' : 'radio';

0 commit comments

Comments
 (0)