Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with IE10 #477

Closed
klnjmm opened this issue Oct 20, 2015 · 6 comments
Closed

Problem with IE10 #477

klnjmm opened this issue Oct 20, 2015 · 6 comments

Comments

@klnjmm
Copy link
Contributor

klnjmm commented Oct 20, 2015

Hello,

I have a problem with IE10 and there is the same bug on your website.
In the "Advanced Example 3" demo, a single click on the browse button doesn't open the "Choose file to upload" window. I have to either click on the right on the block button or double click on it.
This problem is not present in Firefox or Chrome.

Is it possible to fix this bug ?

See gif file attached :

  • First click : no effect
  • Click on the right on the button : dialog open
  • Double click : dialog open

bootstrap-file-input-ie10

@kartik-v
Copy link
Owner

I am not sure why.

Its been a real pain to do specific stuff separately for IE versions each time. Will need to check when I get time if there is any CSS fix for this.

@klnjmm
Copy link
Contributor Author

klnjmm commented Oct 20, 2015

Ok thanks. Hope you can find a solution easily.

@kartik-v
Copy link
Owner

Resolved via specific fix for IE10.

@klnjmm
Copy link
Contributor Author

klnjmm commented Oct 26, 2015

Hi,

Thanks for your reactivity. But I always have the problem : now, only double-clic work. One click on the button doesn't open the dialog.

@kevin2531
Copy link

I have the same issue

@alelom
Copy link

alelom commented May 10, 2017

I solved this problem by using:

    if (navigator.userAgent.indexOf("MSIE 10") > 0) {
        $("#input-2").bind('mousedown', function (event) {
            $(this).trigger('click')
        });
    }
</script>

at the bottom of the HTML document where I'm using bootstrap-fileinput.
Just change "#input-2" to the ID of your button.
You can modify "MSIE 10" to a general "MSIE" so it works also for IE9 and 8.

This solved the double click instead of single click issue for IE10 for me.
Thanks to @nagyt234 for the proposed solution in tors/jquery-fileupload-rails.

tors/jquery-fileupload-rails#33 (comment)

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

No branches or pull requests

4 participants