Open
Description
Vue version
3.5.14
Link to minimal reproduction
Steps to reproduce
<script setup>
import { h, withModifiers } from 'vue'
const btn = h('button', {
onKeyup: withModifiers(
(e) => {console.log('keyup:', e.key)},
['tab', 'enter', 'delete', 'esc', 'space', 'up', 'down', 'right', 'left']
)
}, 'click')
</script>
<template>
<btn />
</template>
What is expected?
Correct prompt
What is actually happening?
- Type '"enter"' is not assignable to type 'VOnModifiers'
- Type '"tab"' is not assignable to type 'VOnModifiers'
System Info
Windows 11 24H2
Microsoft Edge 136.0.3240.64
Any additional comments?
No response