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-select - Removing tag in the Select Mode tag after pressing enter #8646

Open
saeidi-dev opened this issue Jul 21, 2024 · 5 comments
Open
Assignees

Comments

@saeidi-dev
Copy link
Contributor

Reproduction link

https://codesandbox.io/s/68vxnx

Steps to reproduce

In the select component, in the tag mode, after adding a new tag by typing and pressing the enter key, and it is added, if we press the enter key again, the item will be deleted, and if we repeat this, the previous items will also be deleted.

What is expected?

When we type a new phrase and press the enter key, the item is added, and now if we press the enter key again after adding the item, the item is deleted.

What is actually happening?

When we type a new phrase that is not in the list and press the enter key, a new item will be added, now if we press the enter key after it is added again, the item will be deleted and this will continue, and if we do this again, the previous items will also be deleted.

Environment Info
ng-zorro-antd 18.0.1
Browser chrome
@aminhavasi
Copy link

I have the same problem.

@ali-memar
Copy link

useful

@saeidi-dev saeidi-dev changed the title Removing tag in the Select Mode tag after pressing enter nz-select - Removing tag in the Select Mode tag after pressing enter Jul 21, 2024
@mrmemar
Copy link

mrmemar commented Jul 21, 2024

I have this problem too

@mhosseinkhani
Copy link

me too

@Zz-ZzzZ
Copy link
Contributor

Zz-ZzzZ commented Jul 23, 2024

When you enter a piece of text and press Enter, the focus is on the input text. If you press Enter the second time, the input text tag will be deleted, and the focus is on the last selected tag. The third time you press Enter will delete the last selected tag

In Ant Design for React/Vue, when you type a piece of text and press Enter, the focus is on the first item in options, which is different from the interaction with Ant Deisgn for Angular

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

7 participants