Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input 输入框事件冒泡,使其他第三方库的 input focur 事件不能获取焦点,怎么阻止input事件冒泡。8版本没有这个问题。 #5649

Closed
qyjs opened this issue Aug 5, 2020 · 9 comments

Comments

@qyjs
Copy link

qyjs commented Aug 5, 2020

What problem does this feature solve?

取消 input 输入框的事件冒泡

What does the proposed API look like?

阻止input 事件冒泡

@zorro-bot
Copy link

zorro-bot bot commented Aug 5, 2020

Translation of this issue:

input input box event bubbling, the event input focur other third-party libraries can not get the focus, how to prevent input event bubbling. 8 version does not have this problem.

What problem does this feature solve?

Cancel input input box event bubbling

What does the proposed API look like?

Prevent the input event bubbling

@zorro-bot
Copy link

zorro-bot bot commented Aug 5, 2020

Hello @qyjs. Please provide a online reproduction by forking this link https://stackblitz.com/edit/ng-zorro-antd-start or a minimal GitHub repository.
Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @qyjs, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 stackblitz 或者提供一个最小化的 GitHub 仓库
被标记为 Need Reproduce 的 issue 7 天内未跟进将会被自动关闭。

@qyjs
Copy link
Author

qyjs commented Aug 5, 2020

image

请看截图,这是9版本出现的问题

@qyjs
Copy link
Author

qyjs commented Aug 5, 2020

image

在8的版本,focus 没有出现document,一切正常,使用9的时候focus 出现document,导致使用其他库input 无法focur

@qyjs
Copy link
Author

qyjs commented Aug 5, 2020

@vthinkxie

@vthinkxie
Copy link
Member

截图的部分指向都是polyfill部分,与ng-zorro-antd代码无关

@qyjs
Copy link
Author

qyjs commented Aug 7, 2020

@vthinkxie ng-zorro-antd 8 的版本没这个问题啊,升级到ng-zorro-antd 9 就出现这个问题了。

@vthinkxie
Copy link
Member

一同升级的肯定还有angular 版本,zone.js 版本,各种polyfill的版本,rxjs的版本,等等各种三方包
而不是只有ng-zorro-antd

@hsuanxyz
Copy link
Member

This issue has been closed due to inactivity.
Please file a new issue or discussion if you are encountering a similar or related problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants