element How to allow dublicated items in select?

0sgqnhkj  于 2023-02-04  发布在  其他
关注(0)|答案(1)|浏览(133)

I use select with created items. When I hit ENTER key on select ,the item is added to select, the problem is when I add the same element., select remove it , But I want to have another behavior, If I type the same element => the element is not removed from added items and elements with same name are removed(only remove dublicates)

Two variants are possible for me:

  1. Type element with the same name -> both are saved in list(select should not remove any of dublicate items)
  2. Remove only dublicate items(type element name => it is added => type the element with the same name -> remove only dublicate)

Is it posssible to do that?

If no so how can I get the dublicated item from select that was removed?

dxpyg8gm

dxpyg8gm1#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题