typescript - 传递给 IE 11 特定 deactivate 事件的侦听器的事件有什么类型?
问题描述
这是我的代码中的常见事件。我知道调用 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) => {
...
};
解决方案
推荐阅读
- javascript - 如何通过 io.to( 使用变量作为套接字名称
)。发射 - python - 创建功能以打包一个小部件并在按下不同键时删除所有其他小部件
- go - GoYAML - 将字符串输入转换为 Unmarshal 上的类型
- express - 无法理解 passport.initialize() 中间件的要求
- macos - crontab 无法在早上触发工作,但其他时间工作正常。Mac设置问题?
- javascript - 为什么单击按钮后“window.onload”不起作用?
- svg - 用文本缩放 svg 以适应 viewBox
- javascript - 单击按钮获取周数
- memory - 链表中的内存泄漏
- html - 创建自定义列表图标 css