groenroos / minimalect

Minimal select replacement for jQuery
350 stars 52 forks source link

including onHover #37

Closed arjunmenon closed 10 years ago

arjunmenon commented 10 years ago

hey rather than onClick, is it possible to display the list onHover

groenroos commented 10 years ago

Hi Arjun,

Currently there's no such config option. However, if you don't mind editing the source, you should be able to achieve this by replacing line 115 in jquery.minimalect.js with the following:

this.wrapper.on({ mouseenter: function (e) { e.stopPropagation(); m.showChoices() }, mouseleave: function (e) { e.stopPropagation(); m.hideChoices() }});

Note that this is untested code, so it may not work properly; and if you update the version later, it's liable to break.

Let me know if there's anything else I can help with!

arjunmenon commented 10 years ago

thank you. i ll try to improve it