emposha / FCBKcomplete

Jquery facebook like(fancy) multi-select
http://www.emposha.com
383 stars 115 forks source link

Autocomplete fails when key property contains a dash #81

Closed Tino13 closed 12 years ago

Tino13 commented 12 years ago

Since jQuery 1.6, according to what you can read here : http://josephscott.org/archives/2011/05/html5-spec-calls-for-altering-your-data/ It seams data key property cannot contain dashes ('-'). As the fcbkcomplete plugin uses data to store autocomplete result, the option value of the generated select can be altered. See example of autocomplete result below :

{'Jean-Pierre','Jean-Pierre'} will generate an option element like that :

Thanks in advance for your help.

Regards.

emposha commented 12 years ago

Hi @Tino13, nice bug ;) pushed new version with new cache mechanism (thanks to @CatoTH ;) ). Can you test it?

Tino13 commented 12 years ago

Isn't it ? I tested your new version and... it works ! Mission complete.

Thank you for your great job.