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

Ref.current is null in modal after upgrading to 8.0.0 #1463

Open
Phibedy opened this issue Apr 19, 2019 · 1 comment
Open

Ref.current is null in modal after upgrading to 8.0.0 #1463

Phibedy opened this issue Apr 19, 2019 · 1 comment

Comments

@Phibedy
Copy link

Phibedy commented Apr 19, 2019

Issue description

  • components: Modal
  • reactstrap version #7.1.0 vs #8.0.0
  • import method umd/csj/es
  • react version #16.8.6
  • bootstrap version #4.3.1

What is happening?

I would like to autofocus some input in a modal but, after upgrading from 7.1.0 to 8.0.0 React.createRefs().current are null in componentDidUpdate. If I downgrade to 7.1.0 they are set properly. Are there some changes not mentioned in the changelog or is there some bug?

@syxolk
Copy link

syxolk commented Apr 20, 2019

To make it more clear: Reactstrap 8.0.0 does not seem to mount a Modal's children anymore before it is opened for the first time. In Reactstrap 7.1.0 children were mounted by default.

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

No branches or pull requests

2 participants