Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated tags on Google Chrome #868

Closed
Aaarrrgggh opened this issue Jul 23, 2021 · 5 comments
Closed

Duplicated tags on Google Chrome #868

Aaarrrgggh opened this issue Jul 23, 2021 · 5 comments
Labels

Comments

@Aaarrrgggh
Copy link

Hi,

I'm not sure, but it seems that there is an issue when we allow duplicated tags on Google Chrome, with tag templates. The second tag is not correctly interpreted and instead of the name, the ID appears in the tag.

This issue does not appear on Firefox.

@yairEO
Copy link
Owner

yairEO commented Jul 24, 2021

As the issue template begs (you you have deleted), you need to provide me with a minimal demo. please clone this:
https://jsbin.com/jekuqap/edit?html,js,output

Tagify is very versatile and must know your exact configuration and steps to reproduce

@Aaarrrgggh
Copy link
Author

Hi,

I had some problem to paste my code on jsbin.com. I made a codepen instead. You can view it here :

https://codepen.io/aaarrrgggh/pen/LYyMrEE

The issue comes when the input field is prepopulated. For some days, I have worked on it and found the bug : I have to prepopulate the input field with the names of the elements, not with their Ids. What is the correct method to prepopulate with IDs?

Thanks!

Alexander

@yairEO
Copy link
Owner

yairEO commented Aug 12, 2021

what do you mean "prepopulate with IDs"? Your codepen has no IDs but an Array like so:

[
	  {
	    "value": "fac97c18-c187-11eb-aa8d-00163e7dc173",
	    "name": "Australie",
	    "path": "\/data\/teams\/country\/australia.png"
	  }, 
	  {
	    "value": "facb9417-c187-11eb-aa8d-00163e7dc173",
	    "name": "Belgique",
	    "path": "\/data\/teams\/country\/belgium.png"
	  }, 
	  ...
]

@Aaarrrgggh
Copy link
Author

Sorry, I meant values. I would like to make the first code work.

@yairEO
Copy link
Owner

yairEO commented Aug 16, 2021

I've made a simple demo (you could have simplified it for me) and I will investigate tomorrow or the day after

https://jsbin.com/muhidaj/edit?html,js,output

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

No branches or pull requests

2 participants