ng-zorro-antd
ng-zorro-antd copied to clipboard
Enter a duplicate tag, both tags get removed
Reproduction link
https://codesandbox.io/s/7bciw
Steps to reproduce
Enter c12, the previous tag c12 gets removed and the new one does not get added
What is expected?
Keep the previous c12 tag, without adding the new c12 tag
What is actually happening?
Both tags get removed
Environment | Info |
---|---|
ng-zorro-antd | 11.0.2 |
Browser | Chrome Version 88.0.4324.150 |
I saw that this bug got reported in 2018 (https://github.com/NG-ZORRO/ng-zorro-antd/issues/929) and says its fixed, so not sure if this is now the standard behavior. If it really is the wanted behavior it would be great to have an ability to control the behavior, eg.
<nz-select
[removeDuplicates]="false"
....
</nz-select>
Same problem here, can we get any update on how to handle this, or when do you plan to fix this.
Experiencing the same thing as well. It is a bad UX. Please advice how to handle this. Thank you
The thing is you don't even have to put duplicate value. If you enter c12 and then enter just c it will also get removed.
has this by any chance been fixed?
seems that this part got fixed
If you enter c12 and then enter just c it will also get removed.
but we are still left with the behavior that duplicate values are removed by default, which does not seem to be an expected behavior for the users.