You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
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.
The text was updated successfully, but these errors were encountered: