Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Fix: remove tagging label when clicked in dropdown #1943

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

kellym
Copy link

@kellym kellym commented Mar 20, 2017

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 kellym changed the title Remove tagging label when clicked in dropdown Fix: remove tagging label when clicked in dropdown Mar 20, 2017
@Jefiozie Jefiozie self-requested a review March 21, 2017 05:30
@Jefiozie
Copy link
Contributor

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.

@tduchateau
Copy link

We look forward to seeing it merged! :-)

@Ledragon
Copy link

Ledragon commented Dec 5, 2017

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

@marc-thomas
Copy link

+1

@gorn
Copy link

gorn commented Feb 13, 2018

+1 (nextcloud/contacts#444 depends on it)

@skjnldsv
Copy link

👍

@kellym
Copy link
Author

kellym commented Feb 13, 2018

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

@kellym
Copy link
Author

kellym commented Feb 20, 2018

Anything left preventing this from being merged?

@skjnldsv
Copy link

@Jefiozie bump? ❤️

@kaybee41906
Copy link

+1

@kellym
Copy link
Author

kellym commented Mar 21, 2018

Is this repo maintained anymore?

@CesarD
Copy link

CesarD commented May 17, 2018

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

@bsarkadi
Copy link

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

@gorn
Copy link

gorn commented Aug 13, 2018

Is there a problem which blocks accepting this? It is needed in nextcloud/contacts#444

@HerbertMarshall
Copy link

Would love to have this fixed.....

@gorn
Copy link

gorn commented Apr 10, 2019

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tagging-label left in selection when item clicked in dropdown