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

Ajax whitelist remove problem #670

Closed
didactic-goggles opened this issue Oct 5, 2020 · 1 comment
Closed

Ajax whitelist remove problem #670

didactic-goggles opened this issue Oct 5, 2020 · 1 comment

Comments

@didactic-goggles
Copy link

I initialized tagify input then get tags from my server, this is ok. Then I try to create new tag(also on my server), everything is ok but if i try to remove this created tag, tagify remove it from html but input value not refreshed.

image

image

In this code you can see I update input value because when tag was added, I must set new tag ID but tagify not update tag id (code in red box). How can I add a new tag from my server? What is the best way?

@yairEO
Copy link
Owner

yairEO commented Oct 5, 2020

The transformTag method cannot person anything async and will take no affect.

what are you trying to do?

You should work with the tagify.on("add", callback) event so when a tag has been added by the user, you will update your server (also do the same for the remove event)

See this section of the README

Also, the FAQ section can help:

#443
#474

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

No branches or pull requests

2 participants