Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

ie8-ie9 Blur event fires when scrolling list #37

Open
alezzzzz opened this issue Jan 30, 2014 · 6 comments
Open

ie8-ie9 Blur event fires when scrolling list #37

alezzzzz opened this issue Jan 30, 2014 · 6 comments

Comments

@alezzzzz
Copy link

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);
    }
    });

    @nixcms
    Copy link

    nixcms commented Apr 25, 2014

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

    @alezzzzz
    Copy link
    Author

    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 ...

    @kuflievskiy
    Copy link

    I think this issue connected with this one: #9
    I've made pull-request with those changes, please review it whenever it will be possible!

    @typoworx-de
    Copy link

    Try my patched version:

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

    @luigimata
    Copy link

    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.

    @vdecree
    Copy link

    vdecree commented Dec 11, 2014

    This worked really well for me. Thanks

    Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    6 participants