Open srocerer opened 2 years ago
Input works fine if I do not use child component
Child input component:
<Item-input v-model="element.name"></Item-input>
<template> <input class="input" :value="modelValue" @input="$emit('update:modelValue', $event.target.value)" ref="input"> </template> <script> import { defineComponent } from 'vue' export default defineComponent({ props: ['modelValue'], emits: ['update:modelValue'], methods: { focus() { this.$refs.input.focus() } } }) </script>
See #96
Input works fine if I do not use child component
Child input component: