dragonofmercy / Tokenize2

Tokenize2 is a plugin which allows your users to select multiple items from a predefined list or ajax, using autocompletion as they type to find each item. You may have seen a similar type of text entry when filling in the recipients field sending messages on facebook or tags on tumblr.
https://dragonofmercy.github.io/Tokenize2/
BSD 3-Clause "New" or "Revised" License
83 stars 25 forks source link

Focus back on remove #56

Closed Shashank--Shekhar closed 6 years ago

Shashank--Shekhar commented 6 years ago

Is there a way to refocus once a token is removed. Something like


$('#myDiv').on('tokenize:tokens:remove', function(event, value, text) {
     $(this).trigger('tokenize:focus'); //refocus same input
     //or 
     $(this).focus()
 });
dragonofmercy commented 6 years ago

$(this).trigger('tokenize:select', [true]);