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

CSS little issue with required input attribute #45

Closed
Aharito opened this issue Jan 20, 2014 · 1 comment
Closed

CSS little issue with required input attribute #45

Aharito opened this issue Jan 20, 2014 · 1 comment

Comments

@Aharito
Copy link
Contributor

Aharito commented Jan 20, 2014

Hi!

You use .css({'position':'absolute','left':'-9999px'}) to original button hiding. But, when the "required" attribute is set for this input, and user forgot to pick the file, browser show alarm on the leftmost window edge due to -9999.

Better way to avoid this - using .css({'position':'absolute','clip':'rect(0,0,0,0)'})

Regards,
Andrey haritonov aka Aharito

@markusslima
Copy link
Owner

thanks for the contribution

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

2 participants