You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Native inputs support v-model modifiers lazy, number and trim.
However, most of the time, people use a wrapper around their inputs.
According to the docs you can add modelModifiers to your custom component so thats not the problem.
However, it is impossible to pass all modifiers from the wrapper component down to the unerlying native input.
<template>
<!-- not working -->
<inputv-model.modelMofidiers="value" />
</template>
<script setup>
defineProps({ modelValue:String, modelModifiers:Object})
</script>
What problem does this feature solve?
Native inputs support v-model modifiers
lazy, number and trim
.However, most of the time, people use a wrapper around their inputs.
According to the docs you can add modelModifiers to your custom component so thats not the problem.
However, it is impossible to pass all modifiers from the wrapper component down to the unerlying native input.
There is just no working syntax.
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: