davetayls/jquery.kinetic

IE drop-down box issue

Closed this issue · 5 comments

Hi

Thanks for the plugin. I've noticed that on IE if you have a drop-down box you have to double click on the element to be able to select a different item. This is not the case in Firefox and Chrome.

Thanks
J

Hi Jaco, are you able to debug the code and see what is causing this?

On Wed, Feb 15, 2012 at 1:58 PM, Jaco <
reply@reply.github.com

wrote:

Hi

Thanks for the plugin. I've noticed that on IE if you have a drop-down box
you have to double click on the element to be able to select a different
item. This is not the case in Firefox and Chrome.

Thanks
J


Reply to this email directly or view it on GitHub:
#13

Hi Dave

I've been able to hack it to make it work by checking if the focussed
element is a select box and if so not to blur.

line.290

                if (mouseDown && (xpos || ypos)) {
                    if (elementFocused) {
                        if (elementFocused.type != "select-one") {
                            $(elementFocused).blur();
                            elementFocused = null;
                            $this.focus();
                        }
                    }

This is little bit of a hack but it seems to work - maybe it can lead to a
little more elegant solution.

Thanks
Jaco

On Wed, Feb 15, 2012 at 5:00 PM, Dave Taylor <
reply@reply.github.com

wrote:

Hi Jaco, are you able to debug the code and see what is causing this?

On Wed, Feb 15, 2012 at 1:58 PM, Jaco <
reply@reply.github.com

wrote:

Hi

Thanks for the plugin. I've noticed that on IE if you have a drop-down
box
you have to double click on the element to be able to select a different
item. This is not the case in Firefox and Chrome.

Thanks
J


Reply to this email directly or view it on GitHub:
#13


Reply to this email directly or view it on GitHub:
#13 (comment)

Thanks, i'll take a closer look and implement a fix

I notice that this only happens when you use style or class attribute on a dropdown you need to click twice to update your selection.

This might have been fixed from #88, we can reopen this if not