angular项目在IE10以上运行时,表单组件的PlaceHolder变化,或者PlaceHolder中有非英文字符时,在页面初次加载或者表单组件输入之前就会触发校验
这个是问题:解决angular项目在IE10、IE11上运行,表单组件在输入之前就校验的问题
fix(platform-browser): add unique input event plugin
This plugin checks if value of element is changed before firing input event
Internet Explorer 10+ implements 'input' event but it erroneously fires under various situations, e.g. when placeholder changes, when non english placeholder is used or a control is focused
Fixed only from Edge 15.15002 https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/101220/
This bug will not be fixed in Internet Explorer https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11405058/
Closes angular#14440, angular#17951, angular#15299, angular#16151
这个是解决方案: fix(platform-browser): add unique input event plugin
这个是源码:https://stackblitz.com/edit/angular-feu5wd?embed=1&file=src/app.module.ts