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

The ref is not working, also does not work in case of Redux #162

Open
pavan333 opened this issue Jun 7, 2020 · 1 comment
Open

The ref is not working, also does not work in case of Redux #162

pavan333 opened this issue Jun 7, 2020 · 1 comment

Comments

@pavan333
Copy link

pavan333 commented Jun 7, 2020

proceed = this.refs.activeComponent.refs.component.isValidated();

I had having issue that the function isValidated was not being called when the step was being changed. The console was showing an error on this line that the call to undefined function isValidated.

After debugging, I removed the Redux connect from the step component and also changed the line to following so that it could access the isValidated method of step component because I saw that the component object is in activeComponent itself and not in ref.component.
proceed = this.refs.activeComponent.isValidated();

Now this works for me, but I thought it should be fixed. This issue is may be because of the new React updates done for the Ref method. Also the support for Redux should be implimented/fixed for this method as after adding Redux to component, I was not able to get activeComponent either on above line.

@VadimKulyba
Copy link

for me too

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