rauchg / TextboxList

MooTools tokenizer
100 stars 35 forks source link

can't re add #12

Open leapit opened 12 years ago

leapit commented 12 years ago

js code:

var t = new TextboxList('form_tags_input', {unique: true});

$$('.common').addEvent('click', function(e){ t.add(e.target.get('text')); });

html code:

aaaaa bbbbb ccccc

bug:

when your add "aaaaa",and remove "aaaaa",you can't re add "aaaaa",it does't work.

only you SELECT it before you remove,that is work