Open

Description
This example worked in 2.0
, but not in 2.1
:
const input = document.createElement('input');
input.value; // OK
input.onchange = function() {
this.value; // Error
}
The current definition for onchange
in HTMLElement
is: onchange: (this: HTMLElement, ev: Event) => any;
. Maybe it should use this: this
?
Metadata
Metadata
Assignees
Labels
No labels