【发布时间】:2019-03-18 21:35:48
【问题描述】:
这是我的代码中的常见事件。我知道调用 onChange 事件的类型。
private onChange = (e: React.ChangeEvent<HTMLInputElement>) => {
...
};
但是传递给这个事件监听器的事件是什么类型的呢?
// Since blur is asynchronous in IE11 we can't guarantee that a change
// will be saved onBlur when changing component model. The IE exclusive
// `deactivate` event triggers before any other click handlers.
this.inputRef.current!.addEventListener('deactivate', this.onDeactivate);
private onDeactivate = (e: any) => {
...
};
【问题讨论】:
标签: typescript internet-explorer-11