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

Allow content within modals to autofocus #202

Merged
merged 1 commit into from
Apr 27, 2017
Merged

Conversation

tlconnor
Copy link
Contributor

The reactstrap Modal class will autofocus itself upon opening, preventing any elements within the modal from autofocusing.

There is a PR open with a fix here reactstrap/reactstrap#389 that solves the problem by allowing users to pass autofocus={false} to Modals.

In the meantime this PR patches the Modal class to apply the same logic and allow content within modals to autofocus.

Copy link
Contributor

@gthomas-appfolio gthomas-appfolio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for finding and solving for everyone!

@gthomas-appfolio gthomas-appfolio merged commit 4c00796 into master Apr 27, 2017
@gthomas-appfolio gthomas-appfolio deleted the modalFocus branch April 27, 2017 20:45
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