ui-select
ui-select copied to clipboard
Fix: remove tagging label when clicked in dropdown
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.
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.
We look forward to seeing it merged! :-)
Hey, Any update on this? Is something actually preventing the merge?
+1
+1 (https://github.com/nextcloud/contacts/issues/444 depends on it)
👍
I added tests and removed duplicate code. Sorry for the delays in adding changes. Should be ready whenever you like, pending passing tests.
Anything left preventing this from being merged?
@Jefiozie bump? :heart:
+1
Is this repo maintained anymore?
@Jefiozie any news on this and why it's not merged yet? Has been sitting for some time already...
@Jefiozie I'd need this fix as well, any news on it?
Is there a problem which blocks accepting this? It is needed in https://github.com/nextcloud/contacts/issues/444
Would love to have this fixed.....
What tests this exactly needs? And what work? Should the labels be removed?