patrickkunka/easydropdown — pull request #33 by abpetkov (2014-01-16 09:13:44+00:00)
Title: Don't call focus method on item click

Hello!

I used your plugin recently and I really like it. Awesome work on it.

I had a very minor bug that I had to fix myself and that's what this pull request is all about.

When you click on a list item, the select element blur method, which removes the `focus` class, is fired before the item element click method, which adds the `focus` class again. This causes the select element to have a `focus` class until the user clicks somewhere else, which means it's no longer in it's initial state. Visually we can see this most clearly on the metro design demo:

![Focus issue](http://i.imgur.com/klJcCjh.png)

So, assuming we want to blur the select when an item is selected, we don't need to call the focus method again on item click. In that way, once you've selected your option, the cycle is over and you're back to initial state.

Thanks for the great plugin once more.

Regards,
Alexander