commit: 7a17eb7fec4e8f7dbe0a288a22498b800886ac01
parent 4cb14c257c980a13e50027ed4b1a2e38fcafe953
Author: Henry Jameson <me@hjkos.com>
Date: Mon, 21 Mar 2022 22:00:25 +0200
fix selects
Diffstat:
2 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/components/select/select.js b/src/components/select/select.js
@@ -8,12 +8,9 @@ library.add(
)
export default {
- model: {
- prop: 'value',
- event: 'change'
- },
+ emits: ['update:modelValue'],
props: [
- 'value',
+ 'modelValue',
'disabled',
'unstyled',
'kind'
diff --git a/src/components/select/select.vue b/src/components/select/select.vue
@@ -1,4 +1,3 @@
-
<template>
<label
class="Select input"
@@ -6,8 +5,8 @@
>
<select
:disabled="disabled"
- :value="value"
- @change="$emit('change', $event.target.value)"
+ :value="modelValue"
+ @change="$emit('update:modelValue', $event.target.value)"
>
<slot />
</select>