When you select a text that contains quotes, only the part before the quote is inserted in the textbox.
Example text:
This is "text" with quotes
After selecting the value, only the following text will be in the textbox
This is
This issue should be fixed in the renderItem function:
function(item,search){// escape special characterssearch=search.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&');varre=newRegExp("("+search.split(' ').join('|')+")","gi");return'<div class="autocomplete-suggestion" data-val="'+item+'">'+item.replace(re,"<b>$1</b>")+'</div>';}Change this code:
'<div class="autocomplete-suggestion" data-val="'+item+'">'
To this code:
'<div class="autocomplete-suggestion" data-val="'+item.replace(/"/g,'"')+'">'
When you select a text that contains quotes, only the part before the quote is inserted in the textbox.
Example text:
After selecting the value, only the following text will be in the textbox
This issue should be fixed in the renderItem function:
Change this code:
To this code: