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

File upload - Original button visible in Chrome latest version #1904

Closed
mm98 opened this issue May 31, 2018 · 10 comments · Fixed by tghelere/valorize-vidas#6 · May be fixed by devopsred/gaia#6, anikets43/angular-ngrx-socket-frontend#4 or jwlh/WDI_GROUP_PROJECT#2

Comments

@mm98
Copy link

mm98 commented May 31, 2018

This is about Bulma.

it about Bulma
Is it a bug
If it's a bug, is it a browser bug? Yes

This is about the Bulma CSS framework
I'm using Bulma 0.7.1
My browser is: Google Chrome v67.0.3396.62 (win10)
I am sure this issue is not a duplicate? Yes (checked)

Steps to Reproduce

It seams like a bug related to the latest Google Chrome. If you look at https://bulma.io/documentation/form/file/ you'll see that the original upload file button is visible (sass).

Screenshot from latest Google Chrome

Expected behavior

Original form file/upload control should be hidden/invisible.

Actual behavior

Original form file/upload control is visible.

@jgthms
Copy link
Owner

jgthms commented May 31, 2018

Ugh it was the bug fix I merged yesterday. I knew something would break.

@mm98
Copy link
Author

mm98 commented May 31, 2018

Don't think so .. I haven't updated my local version and this shows the same problem. It works ok in FF and IE.

@jgthms
Copy link
Owner

jgthms commented May 31, 2018

Are you on Linux? I can't reproduce:

screen shot 2018-05-31 at 17 38 53

@mm98
Copy link
Author

mm98 commented May 31, 2018

No, this is very odd. This started after i updated to the latest official Google Chrome v67.0.3396.62 (64bit) without any extensions (released a couple of days ago) on Windows 10. I'll try to do some more debugging.

@mm98
Copy link
Author

mm98 commented Jun 1, 2018

This must be a specific Google Chrome on Windows problem. I just installed Chrome on another machine, and the same happens:

screenshot_1

Update: Is there any specific reason why the .file-input isn't just display: none? I just tested it here (with post-back), and it seams to work on all major browsers (latest versions tho).

@ekiwi111
Copy link

Can confirm, using Chrome (67.0.3396.87) on Mac OS X Sierra (10.12.6):

screen shot 2018-06-18 at 12 18 26

Why not just add display: none to .file-input?

@mm98
Copy link
Author

mm98 commented Jul 5, 2018

The file input can't be set to display: none i guess, since it will break a lot of third-party plugins like jquery validate. If the element is set to display: none, it won't get validated. visibility: hidden works with jquery validate.

@mm98
Copy link
Author

mm98 commented Jul 5, 2018

It looks like css height and width has no effect on the button itself (in Google Chrome lastest version). This will only change the textbox (lack of a better word) where the filename(s) is shown. Twitter Bootstrap uses opacity: 0 on file inputs. This might be a good solution.

This will also allow the jquery validation to focus on the element, even tho it is hidden with opacity. This wasn't possible with visibility: hidden.

@vikdotdev
Copy link

vikdotdev commented Sep 16, 2018

I'm having the same issue.

Windows 10 Pro, v1803.
Chrome 68.0.3440.106 (Official Build) (64-bit)
The issue is also present in another somewhat popular webkit browser Opera. Tried it on version 55.0.2994.44.

Can confirm that adding opacity: 0 fixes the issue in both of them.

@net1957
Copy link

net1957 commented Sep 24, 2018

would be nice if this can be added to the 7.2 release.
Thanks

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