You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use tagify with the suggested method for a dynamic whitelist via AJAX.
When you type in data architecture in the JSBin example above, it works as expected, but when you type data collaboration, and hit enter the resulting tag is data architecture. The suggestion stays even though the AJAX whitelist returns an empty list ([]) after the value data c.
This is not the case for Star Wars (present in the AJAX) and Star Gate (not present), or foo bar/foo test.
Setting dropdown.fuzzySearch to false "fixes" this behaviour for the data collaboration example. But is this expeced?
hi, sorry for the delay. can you create a simpler JSBin demo without all the PHP, which actually works? simulate a server response with a delay with you need.
Hi, since the issue appears to be depending on the filtering of the AJAX results on the server, I do not know how to reproduce/mimic that behaviour with a JSBin alone. So I'm not sure how to provide a simpler test-case?
I put the PHP script on my server and referenced it in the JSBin to showcase the issue.
As mentioned above: wenn you enter data collaboration the suggestion data architecture persists and is not cleared, so after typing data collaboration and hitting enter data architecture is used instead. This does not happen for the pair Star Wars (present in the suggestions) and Star Trek (new). So I think it's somehow related to the fuzzy search for suggestions?
Prerequisites
Demo Page
https://jsbin.com/putacayuba/edit?html,js,console,output
Explanation
I use tagify with the suggested method for a dynamic whitelist via AJAX.
When you type in
data architecture
in the JSBin example above, it works as expected, but when you typedata collaboration
, and hit enter the resulting tag isdata architecture
. The suggestion stays even though the AJAX whitelist returns an empty list ([]
) after the valuedata c
.This is not the case for
Star Wars
(present in the AJAX) andStar Gate
(not present), orfoo bar
/foo test
.Setting
dropdown.fuzzySearch
tofalse
"fixes" this behaviour for thedata collaboration
example. But is this expeced?In case of a static whitelist with fuzzySearch enabled, it works as expected (https://jsbin.com/qeronobori/1/edit?html,js,output).
The text was updated successfully, but these errors were encountered: