Skip to content

Commit 6f071fc

Browse files
author
Koen De Voegt
committed
T7493 - dropdown rol terug op inschrijvingsformulier
1 parent 8f6a2ee commit 6f071fc

6 files changed

Lines changed: 14 additions & 9 deletions

File tree

src/components/aanvraag/Contacten.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@
142142

143143
<script>
144144
import BaseInput from "@/components/input/BaseInput";
145+
import BaseDropdown from "@/components/input/BaseDropdown";
145146
import { onUpdated } from "@vue/runtime-core";
146147
import { reactive, toRefs } from "@vue/reactivity";
147148
import BaseCheckbox from "@/components/input/BaseCheckbox";
@@ -167,6 +168,7 @@ export default {
167168
components: {
168169
BaseCheckbox,
169170
BaseInput,
171+
BaseDropdown,
170172
AdresVelden,
171173
BaseInputTelefoon,
172174
},
@@ -210,7 +212,7 @@ export default {
210212
label: "Voogd",
211213
},
212214
{
213-
value: "Opvoedingsverantwoordelijke",
215+
value: "opvoedingsverantwoordelijke",
214216
label: "Opvoedingsverantwoordelijke",
215217
},
216218
],

src/components/input/BaseCheckbox.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:modelValue="value"
1616
:disabled="disabled"
1717
:binary="multiple"
18-
@change="check"
18+
@update:modelValue="check"
1919
/>
2020
<span class="help-button-wrapper">
2121
<a :href="helpLink" target="_blank"
@@ -81,7 +81,8 @@ export default {
8181
},
8282
},
8383
methods: {
84-
check() {
84+
check(newValue) {
85+
this.$emit("update:modelValue", newValue);
8586
this.$emit("check");
8687
this.$emit("changeValue");
8788
},

src/components/input/BaseCheckboxLeft.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
:modelValue="value"
99
:disabled="disabled"
1010
:binary="multiple"
11-
@change="check"
11+
@update:modelValue="check"
1212
/>
1313
<span class="help-button-wrapper">
1414
<i
@@ -66,7 +66,8 @@ export default {
6666
},
6767
},
6868
methods: {
69-
check() {
69+
check(newValue) {
70+
this.$emit("update:modelValue", newValue);
7071
this.$emit("check");
7172
this.$emit("changeValue");
7273
},

src/components/input/BaseCheckboxLeftFunctieSelect.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:modelValue="value"
88
:disabled="disabled"
99
:binary="multiple"
10-
@change="check"
10+
@update:modelValue="check"
1111
/>
1212
</div>
1313
<div class="flex-1 mt-1">
@@ -67,7 +67,8 @@ export default {
6767
},
6868
},
6969
methods: {
70-
check() {
70+
check(newValue) {
71+
this.$emit("update:modelValue", newValue);
7172
this.$emit("check");
7273
this.$emit("changeValue");
7374
},

src/components/lid/Contacten.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export default {
211211
label: "Voogd",
212212
},
213213
{
214-
value: "Opvoedingsverantwoordelijke",
214+
value: "opvoedingsverantwoordelijke",
215215
label: "Opvoedingsverantwoordelijke",
216216
},
217217
],

src/utils/modelWrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { computed } from "vue";
33
export function useModelWrapper(props, emit, name = "modelValue") {
44
return computed({
55
get: () => props[name],
6-
set: (value) => emit("update:${name}", value),
6+
set: (value) => emit(`update:${name}`, value),
77
});
88
}

0 commit comments

Comments
 (0)