emposha / FCBKcomplete

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

Focus problem IE (quicks mode) #122

Open MeMyselfI opened 12 years ago

MeMyselfI commented 12 years ago

When you use "maxItems: 1" the cursor will stay in the field after selecting one element (IE 8+). The problem is this method:

input.blur( function() { isactive = false; if (complete_hover) { complete.fadeOut("fast"); } else { input.focus(); } });

Everytime I try to leave the field the focus jumps right back. I added

if (!maxItems ()) return;

as the first line of the method and it works fine now.

Dzhuneyt commented 9 years ago

Also happens in Chrome.

https://github.com/emposha/FCBKcomplete/issues/107