- Issue created by @mahde
- π¨π¦Canada mahde Vancouver
The actual issue was that the field title has the word "title" in it and I found that there is a statement in the linkit.autocomplete.js file:
if (titleSelector.replace('-title', '') !== linkSelector.replace('-uri', '')) { return false; }
Which is replacing the '-title' and because my field has '-title' so it's replacing the first string found and therefore the statement is false and autocomplete will stop working.
I added a new function to replace only the last occurrence for '-title' to avoid this problem and now it works.
Hope to add this fix to the module to avoid this issue when any field has 'title' string in the label.