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

Remove autofocusing in the modal #106

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Remove autofocusing in the modal #106

wants to merge 2 commits into from

Conversation

svenheden
Copy link
Member

Remove autofocusing on the first focusable element in the modal as this is not compatible with React’s way of handling autofocus. React doesn’t add the autoFocus prop to DOM elements which ally.js is dependent on.

Reference: facebook/react#3066 (comment)

jpersson added 2 commits December 11, 2015 17:31
Remove autofocusing on the first focusable element in the modal as this
is not compatible with React’s way of handling autofocus. React doesn’t
add the `autoFocus` prop to DOM elements which `ally.js` is dependent
on.

Reference: facebook/react#3066 (comment)
@svenheden
Copy link
Member Author

This should fix keystonejs/keystone#1958

@JedWatson
Copy link
Member

@JonathanP I added a slightly different take on this, with a autofocusFirstElement prop, that preserves the rest of the ally functionality. Let me know what you think of the current state; if removing the functionality entirely is still a good idea we can do that.

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

Successfully merging this pull request may close these issues.

2 participants