Skip to content

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

@pavan333

Description

@pavan333

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions