FancySelect icon indicating copy to clipboard operation
FancySelect copied to clipboard

ie8-ie9 Blur event fires when scrolling list

Open alezzzzz opened this issue 12 years ago • 6 comments

Blur event is firing and hiding

    in ie8 and ie9 when user tries to scroll down the list.

    Any solution to this? Im trying a lot of options but cant find the right way to do it.

    This is the code at fancySelect.js, but I dont know how to detect when the user is still on the same html object :

    sel.on('blur', function(e) { if (trigger.hasClass('open')) { return setTimeout(function() { return trigger.trigger('close'); }, 120); } });

    alezzzzz avatar Jan 30 '14 15:01 alezzzzz

    The same problem for me. Please reply if you plan fix it... Thnx.

    nixcms avatar Apr 25 '14 09:04 nixcms

    At the end what I did is removing the line that hides the list, so I really didnt fix it but at least it worked better for my puposes this way ...

    alezzzzz avatar Apr 25 '14 10:04 alezzzzz

    I think this issue connected with this one: https://github.com/octopuscreative/FancySelect/issues/9 I've made pull-request with those changes, please review it whenever it will be possible!

    oleksii-kufliievskyi avatar Apr 25 '14 17:04 oleksii-kufliievskyi

    Try my patched version:

    https://github.com/typoworx-de/FancySelect

    typoworx-de avatar Jul 02 '14 14:07 typoworx-de

    A fix for the Typoworx-de Patch:

    Instead: $('body').on('click', function(e) { if($('.fancy-select > .trigger').is('.open')) { if(!$(e.target).is('.trigger') && $(e.target).closest('.fancy-select > .trigger').length == 0) { trigger.trigger('close.fs'); } } });

    USE: $('body').on('click', function(e) { if( $('.fancy-select > .trigger.open').length >= 1) { $('.fancy-select > .trigger.open').not( $(e.target) ).trigger('close.fs'); } });

    This fixes problem when user clicks in one select and then click in another one. The patch closes the last one.

    luigimata avatar Nov 24 '14 19:11 luigimata

    This worked really well for me. Thanks

    vdecree avatar Dec 11 '14 14:12 vdecree