ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

Enter a duplicate tag, both tags get removed

Open pgarzina opened this issue 4 years ago • 5 comments

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>

pgarzina avatar Feb 15 '21 08:02 pgarzina

Same problem here, can we get any update on how to handle this, or when do you plan to fix this.

zyon1 avatar Feb 22 '21 09:02 zyon1

Experiencing the same thing as well. It is a bad UX. Please advice how to handle this. Thank you

mmartinovich avatar Feb 22 '21 09:02 mmartinovich

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.

chumra avatar Jul 30 '21 07:07 chumra

has this by any chance been fixed?

pgarzina avatar Dec 06 '21 10:12 pgarzina

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.

pgarzina avatar Sep 21 '22 08:09 pgarzina