-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE9 not poping up list (doing select query) after initial selection. #27
Comments
Hey, IE9 is always a pleasure :). It will probably take me a little while to check this on IE9 since i'm working on ubuntu but i'll try to get to it some time soon. Just by reading your scenario i suspect that maybe the blur event is not firing as it should and the AC is not being detached. Can you try and debug that in the meanwhile, around line 222 ? |
Hi Hakib, |
I've taken a look at the issue on IE and i can reproduce. From what I've seen it's an issue with IE9 only (10 & 11 worked fine for me). It seems that the second time you set focus onto the field the model watch is set (attach) but when the value changes the watch is not firing (hence no suggest). I have no idea what can cause this specific problem on IE 9 only. I will keep investigating. |
Hi, I've ran into this issue on IE11 a couple of days ago and finally found the cause. For IE11 and older Angular uses a hack to handle input change: instead of binding on 'input' they listen for 'keydown'. In detach() you unconditionally unbind 'keydown' handlers including Angular's. Storing the handler functions' reference and passing them to unbind() solved the problem for me. |
Hey @mercury83, thats a nice catch. I'm just wondering, in detach I unbind only the function bound by the directive(keeping existing bound events in tact). Can you maybe debug it using IE 11 and take a snapshot of the event listeners before and after unbind to show that existing bound events were unbound after detach? |
Sorry, I take it back, I were using an older version of your lib, could have saved me time and headache if I checked it earlier (-_-)'. |
No worries ;) |
Hi,
Tested Ie9 in my own code and on first State selection input on web site under examples. When you type "Ala", the select list appears and you can select as normal. When you click out of field and then back in, change the wording or retype from scratch the suggest doesnt seem to fire as it should.
Once you click out the suggest sometimes fires on blur which shouldnt be the case.
I`m trying to see what the issue is, but not making much progress.
The text was updated successfully, but these errors were encountered: