jijopaulose / wiquery

Automatically exported from code.google.com/p/wiquery
MIT License
0 stars 0 forks source link

Ajax autocomplete text input triggers JS bug #275

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Create autocomplete textinput where choices are filled in by AJAX call
2. Enter some chars to trigger AJAX request
3. Wait for the AJAX to complete
4. Click outside the textinput to trigger JS blur event
5. Check JS console for error like: Uncaught TypeError: Cannot use 'in' 
operator to search for '38' in ./?0-2.IBehaviorListener.0-autocomplete 

This happens in version 6.9.1 (with fixed missing jquery.ui.menu reference). 
However, the bug is must older only with older jquery versions it did not 
produce JS error so it went unnoticed.

I have attached quickstart demonstrating the bug, with builtin instructions and 
exact description what is wrong (bug is in wiquery-autocomplete.js).

Regards,
Michal

Original issue reported on code.google.com by michal.k...@gmail.com on 15 Nov 2013 at 6:11

Attachments: