Skip to content

Commit

Permalink
fix: update const name for model
Browse files Browse the repository at this point in the history
  • Loading branch information
mpleroux committed Sep 12, 2024
1 parent 6bb2805 commit 57051ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions es-ds-components/components/es-slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ defineProps({
});
// allow use of v-model on this component
const model = defineModel<number>();
const value = defineModel<number>();
</script>

<template>
<div>
<slider
v-model="model"
v-model="value"
v-bind="$attrs"
:min="min"
:max="max"
Expand All @@ -58,7 +58,7 @@ const model = defineModel<number>();
class: 'slider-handle',
},
}" />

<input v-model.number="value" />
<div class="d-flex flex-row justify-content-between">
<span>{{ labelFormatter(min) }}</span>
<span>{{ labelFormatter(max) }}</span>
Expand Down

0 comments on commit 57051ea

Please sign in to comment.