-
Notifications
You must be signed in to change notification settings - Fork 230
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
input type="file" hidden #61
Comments
Hi @arturi - Thanks for reporting this. Here are my thoughts on this:-
Which browser and version are you using? Normally any element with Now that you mention it, I am not sure if there is any need of Additionally, a simple @arturi @kalpeshsingh thoughts? |
Okay, I did some tests and it turns out the bug occurs when this Demo: https://codepen.io/anon/pen/jYyvMe, try tabbing a few times, notice how focus breaks out of the modal. If you look in the console, the NodeList that gets logged there includes all the inputs that have |
Yup, seems like
Problem is this would need to be set for all selectable elements. Seems like globally omiting |
Shall I send a PR with |
In my opinion, adding |
This should be fixed in 0.3.0 @arturi - Would have asked you for a PR, but it was a very small change. So I changed it myself. @kalpeshsingh There were actually just 4 elements which I needed to add it too. If you find a better way feel free to raise a PR |
Thank you! |
Hi! Thank you for the awesome project!
In my project I’m using hidden file inputs that are triggered when a button is clicked. File input element looks like this:
<input class="uppy-Dashboard-input" hidden="true" aria-hidden="true" tabindex="-1" type="file" name="files[]" multiple="true" onchange={this.props.handleInputChange} ref={(input) => { this.input = input }} />
, and it was included to the list of focusable nodes by micromodal. I fixed it by changing the input selector to omithidden
:'input:not([disabled]):not([type="hidden"]):not([hidden])'
I’d like to send a PR, but thought I’d ask first, and also maybe there’s something else that needs to be changed. Add
aria-hidden
too? My input does have atabindex="-1"
andaria-hidden="true"
, but still gets treated as focusable, because it’s an input and nottype="hidden"
.The text was updated successfully, but these errors were encountered: