Skip to content

how can I expose all events of child input? #6719

Discussion options

You must be logged in to vote
<script setup>
import { ref } from 'vue'
import Comp from './Comp.vue'

const handleInput = (e) =>{
  console.log('input')
}
</script>

<template>
  <Comp  @input='handleInput'/>
</template>
<script setup>
import { ref } from 'vue'
</script>

<template>
  <input attrs='$attrs'>
</template>

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by LinusBorg
Comment options

You must be logged in to vote
1 reply
@baiwusanyu-c
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants