Skip to content

fix(Modal): Made focus optional#389

Merged
eddywashere merged 4 commits intoreactstrap:masterfrom
miguelc1221:master
May 14, 2017
Merged

fix(Modal): Made focus optional#389
eddywashere merged 4 commits intoreactstrap:masterfrom
miguelc1221:master

Conversation

@miguelc1221
Copy link
Copy Markdown
Contributor

This PR addresses #335.

It seems that the Modal has a default autoFocus which is why any input inside the modal won't be autoFocused. I exposed a isFocused prop which defaults to true. This way if a user wants to autofocus an input, he/she can remove the autofocus from the modal first.

@TheSharpieOne
Copy link
Copy Markdown
Member

My two cents, isFocused is probably not the best name, something like autoFocus would be better.

@miguelc1221
Copy link
Copy Markdown
Contributor Author

yea you're right, fixed.

@oliverasistemas
Copy link
Copy Markdown

What is the status on this, is it going to be merged?

@eddywashere
Copy link
Copy Markdown
Member

need to re-review and will ship it

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.

4 participants