IE9 not firing focus event on input after selectize
http://jsfiddle.net/aBkgs/13/
So I have a selectize with some options and an input next to it. When I select a value form the selectize (or just focus on the control) and then click on the input the focus event of the input does not fire in IE9. It works in Chrome. If I click one more time on the input then the event fires.
For jsfiddle to work in IE9 follow this link. http://stackoverflow.com/questions/15260947/why-jsfiddle-is-not-rendering-at-all-in-ie8-and-previous-versions
Can anybody help? Am I missing something?
I am experiencing the same thing. Because of this, placeholder text in non-selectized controls are being treated as content upon initial focus.
Maybe it is not the best solution but it works for us. We fired the focus event of the focused control again, when onblurr fires on the selectize control. To do this we had to know which control we need to focus, so we added this code at the begining of selectize.js:
var IE = document.all ? true : false; document.onmousemove = getMouseXY; var tempX = 0; var tempY = 0; function getMouseXY(e) { if (IE) { // grab the x-y pos.s if browser is IE tempX = event.clientX + ((document.body != undefined) ? document.body.scrollLeft : 0) tempY = event.clientY + ((document.body != undefined) ? document.body.scrollTop : 0) } };
and then at the end of the onblur, after self.refreshState(); we added if (IE) { var elem = document.elementFromPoint(tempX, tempY); $(elem).focus(); } Hope it helps.
If anybody has a better solution please post.
We have the same issue and can replicate on IE10 and IE11
Is there a workaround for this, apart from what is suggested above by marijoT9?
Upon investigation, it is found where is the problem but I am not sure on the solution.
It is in the line #644 which is causing this issue. if we remove this it is working fine.
line #644 in what file?
Which lines? I have the same problem..
closing stale issues older than one year. If this issue was closed in error please message the maintainers. All issues must include a proper title, description, and examples.