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

nz-mention need a '@' with blank as prefix, but ant of react just need '@' as prefix #3611

Closed
Eve-Sama opened this issue Jun 20, 2019 · 5 comments

Comments

@Eve-Sama
Copy link
Contributor

Reproduction link

https://stackblitz.com/edit/nz-mention

Steps to reproduce

en: Just input @, you will find nothing's going to happen. But if the text you input is ' @'(with blank), the select panel will appear.

cn: 直接输入@, 没有什么反应, 但是输入空格再输入艾特才会出现选择框.

What is expected?

en: The select panel appears whenever I input @

cn: 每次输入@的时候下拉框都会出现

What is actually happening?

en: The prefix is ' @'(with blank)

cn: 前缀是' @'(带有空格)

Environment Info
ng-zorro-antd 7.5.1
Browser Firefox 67.0.3 (64-bit)

en: Ant of React does as I expect

cn: Ant of React是直接输入艾特的.

@hsuanxyz
Copy link
Member

@Eve-1995 感觉是 react 的 bug,因为没办法输入邮箱了, 上一个版本的 mention 不会出现这个问题 https://ant.design/components/mention-cn/。

@hsuanxyz
Copy link
Member

@Eve-1995 ant-design/ant-design#15694, 看来是新行为。

@yxrgds
Copy link

yxrgds commented Sep 22, 2020

Still unsolved?

@Eve-Sama
Copy link
Contributor Author

Still unsolved?

Yes, it's not a big deal. But it still exist.

@hsuanxyz hsuanxyz added this to the v10.1.0 milestone Oct 22, 2020
@hsuanxyz hsuanxyz modified the milestones: v10.1.0, v10.2.0 Oct 30, 2020
@valeriolucantonio
Copy link

@Eve-Sama is there any update on this issue? Is there any workaround we can use? I tried to use viewChild to open the dropdown manually but haven't managed so far. It would be cool if you could either deliver a fix or offer a workaround for it.
Thanks
Valerio

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

4 participants