svelte-autoresize-textarea
svelte-autoresize-textarea copied to clipboard
bug: Event Forwarding & attributes
This has been really helpful so far, but what's a bit of an challenge is that events like on:keypress do not work, neither do standard attributes like maxlength.
It seems like you expose those on the component, but they do not forward for some reason.
Also seeing an issue with on:keypress with TypeScript:
Argument of type '(event: KeyboardEvent) => void' is not assignable to parameter of type '(e: CustomEvent<any>) => void'.
Types of parameters 'event' and 'e' are incompatible.
Type 'CustomEvent<any>' is missing the following properties from type 'KeyboardEvent': altKey, charCode, code, ctrlKey, and 16 more.
Not sure I'm skilled enough in TypeScript to figure out a PR on this, otherwise I would!