Effort was : To integrate with Google AutoComplete
Problem: Google AutoComplete Supply data in Comma Separated Value so every location becomes tag (I.E. Ahmedabad, Gujarat, India => So tags are Ahmedabad and Gujarat and India)
Solution: I had to change Google Supplied comma separated data to convert into DASH or PERIOD
Code Change:
line 225 to 227
var value = self.$input.val().trim();myvalue = value.replace(/,/g, ' - ', value);var value = myvalue;
line 200, 201
myvalue = value.replace(/,/g, ' - ', value);var value = myvalue;
Hello,
Effort was : To integrate with Google AutoComplete
Problem: Google AutoComplete Supply data in Comma Separated Value so every location becomes tag (I.E. Ahmedabad, Gujarat, India => So tags are Ahmedabad and Gujarat and India)
Solution: I had to change Google Supplied comma separated data to convert into DASH or PERIOD
Code Change: line 225 to 227
var value = self.$input.val().trim();
myvalue = value.replace(/,/g, ' - ', value);
var value = myvalue;
line 200, 201
myvalue = value.replace(/,/g, ' - ', value);
var value = myvalue;
line 347 to 349
myvalue = value.replace(/,/g, ' - ', value);
var $content = $(self.ITEM_CONTENT.replace('%s', myvalue));
var $item = $('<span>').addClass(self.ITEM_CLASS + ' is-closed').attr('data-tag', myvalue).html($content);
This is not an issue but solution for someone searching same.
Thanks for your great work!