#1656·inferno

<input onClick="string()"/> throws TypeError

Author: EduApps-CDGCreated Nov 26, 2023Updated Sep 13, 2025
Labelsbugfeature requestPR welcome

Observed Behaviour the onClick property MUST be a MouseEventHandler or undefined. Because of this behaviour, I'm unable to call my client-side functions defined in a external script.

xml
<input type="submit" onClick="doSomething()"/> - Type 'string' is not assignable to type 'MouseEventHandler<T> | undefined'.ts(2322)

The syntax works if you insert a //@ts-ignore.

Expected Current Behaviour

Inferno should have string-compatible types.

Inferno Metadata Linux