fix:修改降级+保活模式下,ant-design-vue按钮点击事件丢失问题#997
Open
tom1997-max wants to merge 1 commit intoTencent:masterfrom
Open
fix:修改降级+保活模式下,ant-design-vue按钮点击事件丢失问题#997tom1997-max wants to merge 1 commit intoTencent:masterfrom
tom1997-max wants to merge 1 commit intoTencent:masterfrom
Conversation
ant-design-vue按钮组件有一个点击水波纹效果,在按钮点击的时候,会先清除一次事件监听,这时wujie在缓存事件时,会进入iframeWindow.Node.prototype.removeEventListener函数里面,由于时间还未监听,index为-1时,elementListenerList.splice(index, 1)错误的移除了其他事件,加入一个判断就好了
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ant-design-vue按钮组件有一个点击水波纹效果,在按钮点击的时候,会先清除一次事件监听,这时wujie在缓存事件时,会进入iframeWindow.Node.prototype.removeEventListener函数里面,由于事件还未监听,index为-1时,elementListenerList.splice(index, 1)错误的移除了其他事件,加入一个判断就好了
npm run test通过详细描述