ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Fix: remove tagging label when clicked in dropdown

Open kellym opened this issue 8 years ago • 16 comments

This fixes #1806.

This bug was introduced from PR #1727.

Here is a plunker to represent the issue: http://plnkr.co/edit/zv41jdiLa2eylIdM9tu8. When you type in a new field and click on it (don't press enter), the tagging label gets included in the tag.

This fix adds a tiny bit of duplicate code from line 417-ish of the same file, but this particular area of code seems potentially fragile, so I opted minimal changes. Ideally this whole lot of code needs to change to improve the way this text is removed, since a string replace could lead to erroneous string replacements, but there is some traffic on #1806 and it was a significant issue for our team in production.

kellym avatar Mar 20 '17 20:03 kellym

Hi,

Thanks for submitting the PR. Could you maybe create a function to remove the duplicated code? Also I would like to have some tests to verify if this will work in the single and multiple select situation. Can you arrange this?

Thanks.

Jefiozie avatar Mar 21 '17 06:03 Jefiozie

We look forward to seeing it merged! :-)

tduchateau avatar Mar 24 '17 13:03 tduchateau

Hey, Any update on this? Is something actually preventing the merge?

Ledragon avatar Dec 05 '17 08:12 Ledragon

+1

marc-thomas avatar Feb 06 '18 20:02 marc-thomas

+1 (https://github.com/nextcloud/contacts/issues/444 depends on it)

gorn avatar Feb 13 '18 11:02 gorn

👍

skjnldsv avatar Feb 13 '18 15:02 skjnldsv

I added tests and removed duplicate code. Sorry for the delays in adding changes. Should be ready whenever you like, pending passing tests.

kellym avatar Feb 13 '18 16:02 kellym

Anything left preventing this from being merged?

kellym avatar Feb 20 '18 15:02 kellym

@Jefiozie bump? :heart:

skjnldsv avatar Feb 27 '18 19:02 skjnldsv

+1

kaybee41906 avatar Mar 06 '18 20:03 kaybee41906

Is this repo maintained anymore?

kellym avatar Mar 21 '18 19:03 kellym

@Jefiozie any news on this and why it's not merged yet? Has been sitting for some time already...

CesarD avatar May 17 '18 20:05 CesarD

@Jefiozie I'd need this fix as well, any news on it?

bsarkadi avatar Jun 13 '18 11:06 bsarkadi

Is there a problem which blocks accepting this? It is needed in https://github.com/nextcloud/contacts/issues/444

gorn avatar Aug 13 '18 10:08 gorn

Would love to have this fixed.....

HerbertMarshall avatar Apr 01 '19 20:04 HerbertMarshall

What tests this exactly needs? And what work? Should the labels be removed?

gorn avatar Apr 10 '19 22:04 gorn