关于angular项目在IE10+上运行,表单组件在某些情况下的校验问题

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值