-
Notifications
You must be signed in to change notification settings - Fork 826
why does the id of tags change to tags14985314860880 #345
Comments
Hi, I have run into this problem as well. The appending number seem like something generating by Date according by the time you initializing this control. So I tracked to these code:
It is from line 209-212. |
The BUG in here is the object delimiter will exist in the whole session, it is use to store the delimiter of all tag input controls, and index by the ID of them. So the first time, we create an input control (call it A) with an ID '#tag' and delimiter ';'. It work just fine. I delete the second condition 'delimiter[$(this).attr('id')', and it works for me. I still don't know the meaning of this second condition. My best guess is if there are two input control with one single ID, it will assigned another ID for the second input control, but it doesn't seem like a good gesture to deal with those bad design(ID should be unique!). |
Removed delimiter[$(this).attr('id') did solve the issue. Thanks. |
@lucknerjb So is that the only solution to patch plugin source code? |
why does the id of tags change to tags14985314860880;
i user function load() to show the view ;
when i change to another view and then back,the id of tags change to tags14985314860880;
$("#tags").addTag(tag) it doesn't work
The text was updated successfully, but these errors were encountered: