wonderful-panda/vue-tsx-support

Wrong types payload input events

Closed this issue · 0 comments

Version: 2.2.2

Argument of input's onInput callback must be InputHTMLAttributes type.

Actual behavior:

<input
  onInput={e => console.log(e.target && e.target.value)}
  // Property 'value' does not exist on type 'EventTarget'
/>

Expected behavior

<input
  onInput={e => console.log(e.target.value)}
/>